Skip to content

Instantly share code, notes, and snippets.

@rayriffy
Created September 15, 2018 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rayriffy/0ae76a82f029113ddfbd352804e21f97 to your computer and use it in GitHub Desktop.
Save rayriffy/0ae76a82f029113ddfbd352804e21f97 to your computer and use it in GitHub Desktop.
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