-
Notifications
You must be signed in to change notification settings - Fork 662
/
docker-compose.yml
57 lines (50 loc) · 1.26 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: "3"
services:
cache:
image: memcached:1.5.8-alpine
restart: always
elm:
hostname: elm
image: serenata/elm
restart: on-failure
django:
command: ["gunicorn", "jarbas.wsgi:application", "--reload", "--bind", "0.0.0.0:8000", "--workers", $WEB_WORKERS, "--log-level", $LOG_LEVEL, "--timeout", $WEB_TIMEOUT]
depends_on:
- cache
- elm
- tasks
env_file:
- .env
environment:
- NEW_RELIC_APP_NAME=Jarbas (Django); Jarbas (Combined)
hostname: django
image: serenata/django
restart: always
queue:
hostname: queue
image: rabbitmq:3.7.3-alpine
restart: on-failure
rosie:
image: serenata/rosie
tasks:
command: ["newrelic-admin", "run-program", "celery", "worker", "--app", "jarbas"]
depends_on:
- queue
env_file:
- .env
environment:
- NEW_RELIC_APP_NAME=Jarbas (Celery); Jarbas (Combined)
hostname: tasks
image: serenata/django
restart: always
beat:
command: ["newrelic-admin", "run-program", "celery", "beat", "--app", "jarbas"]
depends_on:
- queue
env_file:
- .env
environment:
- NEW_RELIC_APP_NAME=Jarbas (Beat); Jarbas (Combined)
hostname: beat
image: serenata/django
restart: always