accounts/docker-compose.prod.yml
ErickSkrauch 49d612daa1 Replace debian-based image with alpine-based.
Remove supervisor usage. Cron now runs as separate service.
CI for backend now performs without Docker.
2018-07-10 20:02:19 +03:00

58 lines
1.2 KiB
YAML

version: '2'
services:
app:
image: registry.ely.by/elyby/accounts:latest
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']
depends_on:
- db
- redis
env_file: .env
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
web:
image: registry.ely.by/elyby/accounts-nginx:1.0.3
restart: always
volumes_from:
- app
links:
- app:php
env_file: .env
networks:
- default
- nginx-proxy
db:
build: ./docker/mariadb
restart: always
env_file: .env
volumes:
- ./data/mysql:/var/lib/mysql
redis:
image: redis:3.0-alpine
restart: always
volumes:
- ./data/redis:/data
networks:
nginx-proxy:
external:
name: nginx-proxy