mirror of
https://github.com/elyby/accounts.git
synced 2024-11-14 17:26:41 +05:30
c0aa78d156
Completely removed usage of the RabbitMQ. Queue now based on Redis channels. Worker process now extracted as separate docker container. Base image upgraded to the 1.8.0 version (PHP 7.2.7 and pcntl extension).
49 lines
1012 B
YAML
49 lines
1012 B
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
|
|
|
|
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
|