2016-10-02 03:50:40 +05:30
|
|
|
version: '2'
|
|
|
|
services:
|
|
|
|
app:
|
2016-08-09 12:23:05 +05:30
|
|
|
image: registry.ely.by/elyby/accounts:latest
|
2018-07-08 20:50:19 +05:30
|
|
|
restart: always
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
env_file: .env
|
|
|
|
|
|
|
|
worker:
|
|
|
|
image: registry.ely.by/elyby/accounts:latest
|
|
|
|
restart: always
|
|
|
|
command: ['php', 'yii', 'queue/listen', '-v']
|
2016-10-02 03:50:40 +05:30
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
env_file: .env
|
|
|
|
|
2018-07-10 22:32:19 +05:30
|
|
|
worker:
|
|
|
|
image: registry.ely.by/elyby/accounts:latest
|
|
|
|
restart: always
|
|
|
|
command: ['crond', '-s', '/etc/cron.d', '-f', '-L', '/var/log/cron.log']
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
- redis
|
|
|
|
env_file: .env
|
|
|
|
|
2016-10-02 03:50:40 +05:30
|
|
|
web:
|
2017-12-31 17:58:31 +05:30
|
|
|
image: registry.ely.by/elyby/accounts-nginx:1.0.3
|
2018-07-08 20:50:19 +05:30
|
|
|
restart: always
|
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
|
2018-07-08 20:50:19 +05:30
|
|
|
restart: always
|
2016-10-02 03:50:40 +05:30
|
|
|
env_file: .env
|
|
|
|
volumes:
|
|
|
|
- ./data/mysql:/var/lib/mysql
|
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis:3.0-alpine
|
2018-07-08 20:50:19 +05:30
|
|
|
restart: always
|
2016-10-02 03:50:40 +05:30
|
|
|
volumes:
|
|
|
|
- ./data/redis:/data
|
|
|
|
|
|
|
|
networks:
|
|
|
|
nginx-proxy:
|
|
|
|
external:
|
|
|
|
name: nginx-proxy
|