mirror of
https://github.com/elyby/accounts.git
synced 2024-11-10 15:32:12 +05:30
87 lines
2.0 KiB
YAML
87 lines
2.0 KiB
YAML
version: '2'
|
|
services:
|
|
app:
|
|
build: .
|
|
links:
|
|
- db
|
|
- redis
|
|
- rabbitmq
|
|
depends_on:
|
|
- app-console-account-queue
|
|
volumes:
|
|
- ./:/var/www/html/
|
|
env_file: .env
|
|
networks:
|
|
- default
|
|
- nginx-proxy
|
|
|
|
web:
|
|
build: ./docker/nginx
|
|
links:
|
|
- app
|
|
volumes_from:
|
|
- app
|
|
environment:
|
|
- AUTHSERVER_HOST=authserver.ely.by.local
|
|
- PHP_LINK=app
|
|
- VIRTUAL_HOST=account.ely.by.local,authserver.ely.by.local
|
|
networks:
|
|
- default
|
|
- nginx-proxy
|
|
|
|
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: "ely-accounts-app-password"
|
|
RABBITMQ_DEFAULT_VHOST: "/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
|
|
|
|
networks:
|
|
nginx-proxy:
|
|
external:
|
|
name: nginx-proxy
|