2016-05-05 13:45:53 +05:30
|
|
|
version: '2'
|
|
|
|
services:
|
2016-05-10 04:19:50 +05:30
|
|
|
app:
|
2016-05-31 23:35:18 +05:30
|
|
|
build: .
|
2016-05-10 04:19:50 +05:30
|
|
|
links:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
- rabbitmq
|
|
|
|
depends_on:
|
|
|
|
- app-console-account-queue
|
2016-05-31 23:35:18 +05:30
|
|
|
volumes:
|
|
|
|
- ./:/var/www/html/
|
|
|
|
env_file: .env
|
2016-05-10 04:19:50 +05:30
|
|
|
|
2016-05-05 13:45:53 +05:30
|
|
|
web:
|
|
|
|
build: ./docker/nginx
|
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
links:
|
|
|
|
- app
|
|
|
|
volumes_from:
|
|
|
|
- app
|
2016-05-02 13:31:38 +05:30
|
|
|
|
2016-05-05 13:45:53 +05:30
|
|
|
node-dev-server:
|
|
|
|
build: ./frontend
|
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
|
|
|
volumes:
|
|
|
|
- ./frontend/:/usr/src/app/
|
|
|
|
environment:
|
|
|
|
DOCKERIZED: "true"
|
|
|
|
|
2016-05-10 04:19:50 +05:30
|
|
|
app-console-account-queue:
|
|
|
|
build: .
|
|
|
|
volumes:
|
|
|
|
- ./:/var/www/html/
|
|
|
|
command: ./docker/wait-for-it.sh rabbitmq:5672 -- ./yii account-queue
|
|
|
|
links:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
- rabbitmq
|
|
|
|
|
2016-05-05 13:45:53 +05:30
|
|
|
db:
|
2016-05-10 04:19:50 +05:30
|
|
|
build: ./docker/mariadb
|
2016-07-15 03:33:13 +05:30
|
|
|
environment:
|
|
|
|
MYSQL_ROOT_PASSWORD: ""
|
|
|
|
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
|
|
|
|
MYSQL_DATABASE: "ely_accounts"
|
|
|
|
MYSQL_USER: "ely_accounts_user"
|
|
|
|
MYSQL_PASSWORD: "ely_accounts_password"
|
2016-05-05 13:45:53 +05:30
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis:3.0
|
|
|
|
|
|
|
|
rabbitmq:
|
2016-05-10 04:19:50 +05:30
|
|
|
build: ./docker/rabbitmq
|
2016-07-15 03:33:13 +05:30
|
|
|
environment:
|
|
|
|
RABBITMQ_DEFAULT_USER: "ely-accounts-app"
|
|
|
|
RABBITMQ_DEFAULT_PASS: "app-password"
|
|
|
|
RABBITMQ_DEFAULT_VHOST: "/account.ely.by"
|
2016-05-10 04:19:50 +05:30
|
|
|
ports:
|
2016-07-15 03:33:13 +05:30
|
|
|
- "15672:15672" # Manager interface
|
2016-05-13 01:58:23 +05:30
|
|
|
|
|
|
|
phpmyadmin:
|
|
|
|
build: ./docker/phpmyadmin
|
|
|
|
environment:
|
|
|
|
- PMA_ARBITRARY=1
|
|
|
|
- PMA_USER=root
|
|
|
|
- PMA_PASSWORD=
|
|
|
|
ports:
|
|
|
|
- "8181:80"
|
|
|
|
links:
|
|
|
|
- db
|