Skip to content

Instantly share code, notes, and snippets.

@rayriffy rayriffy/docker-compose.yml Secret
Created Sep 15, 2018

Embed
What would you like to do?
version: '3'
networks:
frontend:
driver: bridge
backend:
driver: bridge
services:
certbot:
image: adferrand/letsencrypt-dns:2.5.3
container_name: certbot
restart: unless-stopped
env_file:
- ./certbot/build/env
volumes:
- ./certbot/dist/domains.conf:/etc/letsencrypt/domains.conf
- ./tmp/letsencrypt:/etc/letsencrypt
networks:
- backend
proxy:
image: nginx:1.15.3-alpine
container_name: proxy
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/conf/web:/etc/nginx/conf.d
- ./nginx/conf/module:/etc/nginx/snippets
- ./tmp/letsencrypt:/etc/letsencrypt
depends_on:
- certbot
networks:
- frontend
- backend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.