mirror of
https://github.com/elyby/accounts.git
synced 2024-11-10 07:22:00 +05:30
49d612daa1
Remove supervisor usage. Cron now runs as separate service. CI for backend now performs without Docker.
83 lines
1.8 KiB
YAML
83 lines
1.8 KiB
YAML
version: '2'
|
|
services:
|
|
app:
|
|
image: registry.ely.by/elyby/accounts:dev
|
|
build:
|
|
context: .
|
|
args:
|
|
build_env: dev
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
volumes:
|
|
- ./:/var/www/html/
|
|
env_file: .env
|
|
|
|
worker:
|
|
image: registry.ely.by/elyby/accounts:dev
|
|
build:
|
|
context: .
|
|
args:
|
|
build_env: dev
|
|
command: ['php', 'yii', 'queue/listen', '-v']
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
volumes:
|
|
- ./:/var/www/html/
|
|
env_file: .env
|
|
|
|
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
|
|
|
|
web:
|
|
image: registry.ely.by/elyby/accounts-nginx:latest
|
|
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
|