Skip to content

Instantly share code, notes, and snippets.

@haigopi
Created January 30, 2022 18:23
Show Gist options
  • Save haigopi/2b28f9da9b7001ddcc872f93364bf986 to your computer and use it in GitHub Desktop.
Save haigopi/2b28f9da9b7001ddcc872f93364bf986 to your computer and use it in GitHub Desktop.
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