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
php-fpm-72:
build:
context: ./php-fpm/build/72
dockerfile: Dockerfile
container_name: php-fpm-72
networks:
- backend
volumes:
- ./web/data/html:/web
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
web-blog-rayriffy-com:
build:
context: ./web/build/html
dockerfile: Dockerfile
container_name: web-blog-rayriffy-com
restart: unless-stopped
environment:
- SERVER_NAME=blog.rayriffy.com
- PHP_BACKEND=php-fpm-72
- ROOT=/web/blog.rayriffy.com
depends_on:
- php-fpm-72
volumes:
- ./web/data/html/blog.rayriffy.com:/web/blog.rayriffy.com
networks:
- 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.