accounts/docker-compose.yml

70 lines
1.4 KiB
YAML

version: '2'
services:
app:
build: .
expose:
- "9000"
links:
- db
- redis
- rabbitmq
depends_on:
- app-console-account-queue
volumes:
- ./:/var/www/html/
env_file: .env
environment:
ENABLE_ENV_FILE: 1
ENABLE_LOCALCONF: 1
web:
build: ./docker/nginx
ports:
- "80:80"
links:
- app
volumes_from:
- app
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