Created
January 30, 2022 18:23
-
-
Save haigopi/2b28f9da9b7001ddcc872f93364bf986 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nginx: | |
image: nginx:latest | |
container_name: devqa_nginx | |
restart: unless-stopped | |
ports: | |
- "80:80" | |
- "443:443" | |
volumes: | |
- ./nginx/nginx.conf:/etc/nginx/nginx.conf | |
- /etc/letsencrypt:/etc/letsencrypt | |
- /var/lib/letsencrypt:/var/lib/letsencrypt | |
certbot: | |
image: certbot/certbot:latest | |
container_name: devqa_certbot | |
command: certonly -v --keep --email [email protected] --agree-tos --no-eff-email --duplicate --expand --webroot -w=/etc/letsencrypt --cert-name mydomain -d gateway.mydomain.com,grafana.mydomain.com,registry.mydomain.com,kibana.mydomain.com,prometheus.mydomain.com,auth.mydomain.com | |
volumes: | |
- /etc/letsencrypt:/etc/letsencrypt | |
- /var/lib/letsencrypt:/var/lib/letsencrypt | |
depends_on: | |
- nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment