Simple docker image that launchs certbot on first startup.
docker run \
--name nginxinstance \
-p 80:80 \
-p 443:443 \
-v "/etc/letsencrypt:/etc/letsencrypt" \
-v "/var/lib/letsencrypt:/var/lib/letsencrypt" \
-v /etc/nginxconfigs:/etc/nginx/conf.d \
-e [email protected] \
-e DOMAINS=example.com,www.example.com \
adiandev/nginxcertbot
web:
image: adiandev/nginxcertbot
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- /etc/letsencrypt:/etc/letsencrypt
- /var/lib/letsencrypt:/var/lib/letsencrypt
ports:
- "80:80"
- "443:443"
environment:
- [email protected]
- DOMAINS=example.com,www.example.com
Content type
Image
Digest
Size
85.8 MB
Last updated
about 6 years ago
docker pull adiandev/nginxcertbot