mirror of
https://github.com/elyby/accounts.git
synced 2024-11-10 15:32:12 +05:30
74 lines
1.7 KiB
YAML
74 lines
1.7 KiB
YAML
version: '2'
|
|
services:
|
|
app:
|
|
build: .
|
|
links:
|
|
- db
|
|
- redis
|
|
- rabbitmq
|
|
depends_on:
|
|
- app-console-account-queue
|
|
volumes:
|
|
- ./:/var/www/html/
|
|
env_file: .env
|
|
|
|
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
|
|
environment:
|
|
MYSQL_ROOT_PASSWORD: ""
|
|
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
|
|
MYSQL_DATABASE: "ely_accounts"
|
|
MYSQL_USER: "ely_accounts_user"
|
|
MYSQL_PASSWORD: "ely_accounts_password"
|
|
|
|
redis:
|
|
image: redis:3.0
|
|
|
|
rabbitmq:
|
|
build: ./docker/rabbitmq
|
|
environment:
|
|
RABBITMQ_DEFAULT_USER: "ely-accounts-app"
|
|
RABBITMQ_DEFAULT_PASS: "app-password"
|
|
RABBITMQ_DEFAULT_VHOST: "/account.ely.by"
|
|
ports:
|
|
- "15672:15672" # Manager interface
|
|
|
|
phpmyadmin:
|
|
build: ./docker/phpmyadmin
|
|
environment:
|
|
- PMA_ARBITRARY=1
|
|
- PMA_USER=root
|
|
- PMA_PASSWORD=
|
|
ports:
|
|
- "8181:80"
|
|
links:
|
|
- db
|