accounts/docker-compose.yml
2016-05-12 23:28:23 +03:00

75 lines
1.4 KiB
YAML

version: '2'
services:
app:
links:
- db
- redis
- rabbitmq
depends_on:
- app-console-account-queue
environment:
ENABLE_ENV_FILE: 1
ENABLE_LOCALCONF: 1
web:
build: ./docker/nginx
ports:
- "80:80"
links:
- app
volumes_from:
- app
app:
build: .
expose:
- "9000"
volumes:
- ./:/var/www/html/
environment:
ENABLE_ENV_FILE: 1
ENABLE_LOCALCONF: 1
node-dev-server:
build: ./frontend
ports:
- "8080:8080"
volumes:
- ./frontend/:/usr/src/app/
environment:
DOCKERIZED: "true"
app-console-account-queue:
build: .
volumes:
- ./:/var/www/html/
command: ./docker/wait-for-it.sh rabbitmq:5672 -- ./yii account-queue
links:
- db
- redis
- rabbitmq
db:
build: ./docker/mariadb
redis:
image: redis:3.0
rabbitmq:
build: ./docker/rabbitmq
ports:
- "15672:15672"
phpmyadmin:
build: ./docker/phpmyadmin
environment:
- PMA_ARBITRARY=1
- PMA_USER=root
- PMA_PASSWORD=
restart: always
ports:
- "8181:80"
links:
- db