forked from team-labs/megatron
/
docker-compose.yml
34 lines (31 loc) · 900 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
version: '3'
services:
megatron:
restart: always
build: ${PWD}/app/
environment:
PRODUCTION: 'false'
command: bash -c "echo $PRODUCTION && ./start.sh"
volumes:
- ${PWD}/app:/usr/src/app
ports:
- "8002:8002"
env_file:
- ${PWD}/app/django-variables.env
megatron-celery:
build: ${PWD}/app/
image: megatron-celery
user: megatron-celery
command: /bin/bash -c "export WORKER_MODE=celery && celery -A megatron worker -Q megatron -l info -E"
volumes:
- ${PWD}/app:/usr/src/app
env_file:
- ${PWD}/app/django-variables.env
megatron-celery-beat:
build: ${PWD}/app/
image: megatron-celery-beat
command: /bin/bash -c "export WORKER_MODE=celery && celery -A megatron beat -l info -S django"
volumes:
- ${PWD}/app:/usr/src/app
env_file:
- ${PWD}/app/django-variables.env