Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
104 lines (94 sloc) 1.92 KB
version: "2"
networks:
internal-network:
driver: bridge
services:
data:
build: ./docker/data
volumes:
- ./frontend:/var/www/frontend
- /var/www/frontend/node_modules
- ./backend:/var/www/backend
- /var/www/backend/vendor
- /var/www/backend/bin
- /var/www/backend/app/cache
- /var/www/backend/app/logs
nginx:
build: ./docker/nginx
ports:
- "80:80"
links:
- app
volumes_from:
- data
networks:
internal-network:
aliases:
- nginx
app:
build:
context: ./docker
dockerfile: ./php7_1/Dockerfile
links:
- mysql:mysqldb
# - rabbitmq
volumes_from:
- data
ports:
- "81:8080"
networks:
internal-network:
aliases:
- app
mysql:
image: mysql:5.6
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: qazwsxedc
MYSQL_DATABASE: app
MYSQL_USER: app
MYSQL_PASSWORD: qazwsxedc
networks:
internal-network:
aliases:
- mysql
selenium:
image: selenium/standalone-chrome
links:
- nginx
ports:
- "4444:4444"
- "5900:5900"
networks:
internal-network:
aliases:
- selenium-standalone-chrome
# rabbitmq:
# image: "rabbitmq:management"
# environment:
# RABBITMQ_ERLANG_COOKIE: "SWQOKODSQALRPCLNMEQG"
# RABBITMQ_DEFAULT_USER: "app"
# RABBITMQ_DEFAULT_PASS: "qazwsxedc"
# RABBITMQ_DEFAULT_VHOST: "/"
# ports:
# - "15672:15672"
# - "5672:5672"
# networks:
# internal-network:
# aliases:
# - rabbitmq
# elk:
# image: willdurand/elk
# ports:
# - "82:80"
# volumes:
# - ./docker/logstash:/etc/logstash
# - ./docker/logstash/patterns:/opt/logstash/patterns
# volumes_from:
# - app
# - nginx
# networks:
# internal-network:
# aliases:
# - elk
You can’t perform that action at this time.