Skip to content

Instantly share code, notes, and snippets.

@cristiano-pacheco
Last active October 22, 2018 17:41
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 cristiano-pacheco/1fc389df7a82a363e936a99e5c9989c3 to your computer and use it in GitHub Desktop.
Save cristiano-pacheco/1fc389df7a82a363e936a99e5c9989c3 to your computer and use it in GitHub Desktop.
Docker compose RD
version: '2'
services:
proxy:
image: nginx:1.13.8
container_name: orange_nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf # config file for nginx 1.13.8
- ./nginx/includes.d:/etc/nginx/includes.d
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/ssl:/etc/nginx/ssl
- ./nginx/log:/var/log/nginx
- /home/cristiano/Documentos/www/project/:/storage/droga
networks:
- network-back
# PHP
php-5.6:
extends:
file: php/php.yml
service: php-5.6
volumes:
- ./php/php-fpm-5.6/hosts:/etc/hosts
# Database
percona:
extends:
file: mysql/mysql.yml
service: percona
mongo:
extends:
file: mongo/mongo.yml
service: mongo
# Tools
redis:
extends:
file: tools/tools.yml
service: redis
gearman:
extends:
file: tools/tools.yml
service: gearman
rabbitmq:
image: rabbitmq:3-management
container_name: orange_rabbitmq
ports:
- "8081:15672"
volumes:
- ./rabbitmq/storage:/var/lib/rabbitmq
environment:
- RABBITMQ_ERLANG_COOKIE=secretkey
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
- CLUSTERED=true
networks:
- network-back
# Networks
networks:
network-back:
driver: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment