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
|
2019-06-06 04:44:15 +05:30
|
|
|
- emails-renderer
|
2019-04-06 19:22:23 +05:30
|
|
|
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-08-02 21:46:34 +05:30
|
|
|
volumes:
|
|
|
|
- certs-storage:/var/www/html/data/certs
|
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-06-06 04:44:15 +05:30
|
|
|
emails-renderer:
|
|
|
|
image: elyby/emails-renderer:dev
|
|
|
|
logging: *default-logging
|
|
|
|
|
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
|
|
|
|
2019-08-02 21:46:34 +05:30
|
|
|
volumes:
|
|
|
|
certs-storage:
|
|
|
|
driver: local
|
|
|
|
driver_opts:
|
|
|
|
type: none
|
|
|
|
device: $PWD/data/certs
|
|
|
|
o: bind
|
|
|
|
|
2016-10-02 03:50:40 +05:30
|
|
|
networks:
|
2019-02-21 01:28:52 +05:30
|
|
|
nginx-proxy:
|
|
|
|
external:
|
|
|
|
name: nginx-proxy
|