Skip to content

Instantly share code, notes, and snippets.

@victorhugorch
Created February 20, 2018 21:32
Show Gist options
  • Save victorhugorch/ec82fb25cd5c192ffd593624c0dbaa61 to your computer and use it in GitHub Desktop.
Save victorhugorch/ec82fb25cd5c192ffd593624c0dbaa61 to your computer and use it in GitHub Desktop.
version: '2'
networks:
wama:
driver: bridge
services:
folhadirigida_php:
image: estrategiamktdigital/php7.1-builtin-imagick-ghostscript-bower
container_name: folhadirigida
tty: true
expose:
- 9000
volumes:
- ${PROJECTS_PATH}/${FOLHADIRIGIDA_PATH_NAME}:/var/www/${FOLHADIRIGIDA_PATH_NAME}
- ${PROJECTS_PATH}/${FOLHADIRIGIDA_PATH_NAME}/storage/app/public:/var/www/${FOLHADIRIGIDA_PATH_NAME}/public/storage #???
- ${PROJECTS_PATH}/${FOLHADIRIGIDA_PATH_NAME}/docker/php/custom.ini:/usr/local/etc/php/conf.d/custom.ini
networks:
- wama
folhadirigida_serverfiles_php:
image: ambientum/php:7.0-caddy
container_name: folha_dirigida_serverfiles_app
tty: true
expose:
- 9000
volumes:
- ${PROJECTS_PATH}/${FOLHADIRIGIDA_SERVERFILES_PATH_NAME}:/var/www/${FOLHADIRIGIDA_SERVERFILES_PATH_NAME}
networks:
- wama
degraucultural_php:
image: ambientum/php:7.1-caddy
container_name: degrau_cultural_app
tty: true
expose:
- 9000
volumes:
- ${PROJECTS_PATH}/${DEGRAUCULTURAL_PATH_NAME}:/var/www/${DEGRAUCULTURAL_PATH_NAME}
networks:
- wama
nginx:
image: estrategiamktdigital/nginx-optimized
container_name: nginx_app
entrypoint: nginx -g "daemon off;" -c /etc/nginx/nginx.conf
tty: true
ports:
- "80:80"
- "443:443"
links:
- degraucultural_php
- folhadirigida_php
- folhadirigida_serverfiles_php
volumes_from:
- folhadirigida_php
- degraucultural_php
- folhadirigida_serverfiles_php
volumes:
- /var/logs/nginx/:/var/logs/nginx/
- ./nginx/vhosts/upstream.conf:/etc/nginx/conf.d/upstream.conf
- ./nginx/.htpasswd:/etc/nginx/.htpasswd
- ./nginx/vhosts/folhadirigida.conf:/etc/nginx/conf.d/folhadirigida.conf
- ./nginx/vhosts/degraucultural.conf:/etc/nginx/conf.d/degraucultural.conf
networks:
- wama
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment