forked from NREL/engage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
97 lines (89 loc) · 1.99 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: "3"
volumes:
data:
services:
redis:
image: "redis:alpine"
container_name: calliope-redis
ports:
- "6379:6379"
postgres:
image: "postgres:12.2-alpine"
container_name: calliope-postgres
restart: always
environment:
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- "5433:5432"
volumes:
- ./postgres/data:/var/lib/postgresql/data
short_worker:
build:
context: calliope_app
dockerfile: compose/Dockerfile
image: calliope-short-worker
container_name: calliope-short-worker
restart: on-failure
env_file:
- .envs/.local
volumes:
- ./calliope_app:/www
- ./data:/data
depends_on:
- redis
command: ["compose/run-short-worker.sh"]
long_worker:
build:
context: calliope_app
dockerfile: compose/Dockerfile
image: calliope-long-worker
container_name: calliope-long-worker
restart: on-failure
env_file:
- .envs/.local
volumes:
- ./calliope_app:/www
- ./data:/data
depends_on:
- redis
command: ["compose/run-long-worker.sh"]
celery_flower:
build:
context: calliope_app
dockerfile: compose/Dockerfile
image: calliope-celery-flower
container_name: calliope-celery-flower
restart: on-failure
env_file:
- .envs/.local
ports:
- "5555:5555"
volumes:
- ./calliope_app:/www
- ./data:/data
depends_on:
- redis
- short_worker
- long_worker
command: ["compose/run-celery-flower.sh"]
app:
build:
context: calliope_app
dockerfile: compose/Dockerfile
image: calliope-app
container_name: calliope-app
restart: on-failure
env_file:
- .envs/.local
volumes:
- ./calliope_app:/www
- ./data:/data
ports:
- "8000:8000"
depends_on:
- postgres
- redis
- short_worker
- long_worker
- celery_flower
command: ["./wait-for-postgres.sh", "compose/run-calliope-app.sh"]