2019-04-06 19:22:23 +05:30
|
|
|
version: '3.4'
|
|
|
|
|
|
|
|
x-logging:
|
|
|
|
&default-logging
|
|
|
|
options:
|
|
|
|
max-size: 50m
|
|
|
|
|
2016-10-02 03:50:40 +05:30
|
|
|
services:
|
2019-04-06 19:22:23 +05:30
|
|
|
web:
|
|
|
|
image: registry.ely.by/elyby/accounts-nginx:latest
|
|
|
|
restart: always
|
|
|
|
depends_on:
|
|
|
|
- app
|
|
|
|
env_file: .env
|
|
|
|
volumes:
|
|
|
|
- ./frontend:/var/www/html/frontend
|
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- nginx-proxy
|
|
|
|
logging: *default-logging
|
|
|
|
|
2019-02-21 01:28:52 +05:30
|
|
|
app:
|
|
|
|
image: registry.ely.by/elyby/accounts:latest
|
|
|
|
restart: always
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
env_file: .env
|
2019-04-06 19:22:23 +05:30
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
aliases:
|
|
|
|
- php
|
|
|
|
logging: *default-logging
|
2018-07-08 20:50:19 +05:30
|
|
|
|
2019-02-21 01:28:52 +05:30
|
|
|
worker:
|
|
|
|
image: registry.ely.by/elyby/accounts:latest
|
|
|
|
restart: always
|
|
|
|
command: ['php', 'yii', 'queue/listen', '-v']
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
env_file: .env
|
2019-04-06 19:22:23 +05:30
|
|
|
logging: *default-logging
|
2016-10-02 03:50:40 +05:30
|
|
|
|
2019-02-21 01:28:52 +05:30
|
|
|
cron:
|
|
|
|
image: registry.ely.by/elyby/accounts:latest
|
|
|
|
restart: always
|
|
|
|
command: ['crond', '-s', '/etc/cron.d', '-f', '-L', '/var/log/cron.log']
|
|
|
|
stop_signal: SIGKILL
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
env_file: .env
|
2019-04-06 19:22:23 +05:30
|
|
|
logging: *default-logging
|
2016-10-02 03:50:40 +05:30
|
|
|
|
2019-02-21 01:28:52 +05:30
|
|
|
db:
|
2019-04-06 19:22:23 +05:30
|
|
|
image: registry.ely.by/elyby/accounts-mariadb:latest
|
2019-02-21 01:28:52 +05:30
|
|
|
restart: always
|
|
|
|
env_file: .env
|
|
|
|
volumes:
|
|
|
|
- ./data/mysql:/var/lib/mysql
|
2016-10-02 03:50:40 +05:30
|
|
|
|
2019-02-21 01:28:52 +05:30
|
|
|
redis:
|
|
|
|
image: redis:3.0-alpine
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- ./data/redis:/data
|
2016-10-02 03:50:40 +05:30
|
|
|
|
|
|
|
networks:
|
2019-02-21 01:28:52 +05:30
|
|
|
nginx-proxy:
|
|
|
|
external:
|
|
|
|
name: nginx-proxy
|