2016-10-02 03:50:40 +05:30
|
|
|
version: '2'
|
|
|
|
services:
|
|
|
|
app:
|
2018-07-10 22:32:19 +05:30
|
|
|
image: registry.ely.by/elyby/accounts:dev
|
2016-10-02 03:50:40 +05:30
|
|
|
build:
|
|
|
|
context: .
|
2018-07-10 22:32:19 +05:30
|
|
|
args:
|
|
|
|
build_env: dev
|
2016-10-02 03:50:40 +05:30
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
2018-07-08 20:50:19 +05:30
|
|
|
volumes:
|
|
|
|
- ./:/var/www/html/
|
|
|
|
env_file: .env
|
|
|
|
|
|
|
|
worker:
|
2018-07-10 22:32:19 +05:30
|
|
|
image: registry.ely.by/elyby/accounts:dev
|
2018-07-08 20:50:19 +05:30
|
|
|
build:
|
|
|
|
context: .
|
2018-07-10 22:32:19 +05:30
|
|
|
args:
|
|
|
|
build_env: dev
|
2018-07-08 20:50:19 +05:30
|
|
|
command: ['php', 'yii', 'queue/listen', '-v']
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
2016-10-02 03:50:40 +05:30
|
|
|
volumes:
|
|
|
|
- ./:/var/www/html/
|
|
|
|
env_file: .env
|
|
|
|
|
2018-07-10 22:32:19 +05:30
|
|
|
cron:
|
|
|
|
image: registry.ely.by/elyby/accounts:dev
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
args:
|
|
|
|
build_env: dev
|
|
|
|
command: ['crond', '-s', '/etc/cron.d', '-f', '-L', '/var/log/cron.log']
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
volumes:
|
|
|
|
- ./:/var/www/html/
|
|
|
|
env_file: .env
|
|
|
|
|
2016-10-02 03:50:40 +05:30
|
|
|
web:
|
2016-12-02 14:08:14 +05:30
|
|
|
image: registry.ely.by/elyby/accounts-nginx:latest
|
2016-10-02 03:50:40 +05:30
|
|
|
volumes_from:
|
|
|
|
- app
|
|
|
|
links:
|
|
|
|
- app:php
|
|
|
|
env_file: .env
|
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- nginx-proxy
|
|
|
|
|
|
|
|
db:
|
|
|
|
build: ./docker/mariadb
|
|
|
|
env_file: .env
|
|
|
|
volumes:
|
|
|
|
- ./data/mysql:/var/lib/mysql
|
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis:3.0-alpine
|
|
|
|
volumes:
|
|
|
|
- ./data/redis:/data
|
|
|
|
|
|
|
|
phpmyadmin:
|
|
|
|
build: ./docker/phpmyadmin
|
|
|
|
environment:
|
|
|
|
- PMA_ARBITRARY=1
|
|
|
|
- PMA_USER=root
|
|
|
|
- PMA_PASSWORD=
|
|
|
|
- VIRTUAL_HOST=pma.account.ely.by.local
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- nginx-proxy
|
|
|
|
|
|
|
|
networks:
|
|
|
|
nginx-proxy:
|
|
|
|
external:
|
|
|
|
name: nginx-proxy
|