-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
168 lines (158 loc) · 3.56 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
version: "3.4"
services:
nginx:
image: "ddmal/nginx:${DOCKER_TAG}"
command: /run/start
depends_on:
- celery
- postgres
- rabbitmq
- redis
- rodan-main
environment:
TZ: America/Toronto
SERVER_HOST: localhost
ports:
- "80:80"
- "443:443"
- "9002:9002"
volumes:
- "resources:/rodan/data"
rodan-main:
image: "ddmal/rodan-main:${DOCKER_TAG}"
healthcheck:
test:
[
"CMD-SHELL",
"/usr/bin/curl -H 'User-Agent: docker-healthcheck' http://localhost:8000/api/?format=json || exit 1"
]
interval: "10s"
timeout: "5s"
retries: 2
start_period: "2m"
command: bash -c "tail -f /dev/null"
environment:
TZ: America/Toronto
SERVER_HOST: localhost
CELERY_JOB_QUEUE: None
depends_on:
- postgres
- rabbitmq
- redis
- iipsrv
env_file:
- ./scripts/local.env
volumes:
- "resources:/rodan/data"
- "./rodan-main/code:/code/Rodan"
rodan-client:
image: "ddmal/rodan-client:${DOCKER_TAG}"
volumes:
- "./rodan-client/code:/code"
- "./rodan-client/config/configuration.json:/client/configuration.json"
iipsrv:
image: "ddmal/iipsrv:${DOCKER_TAG}"
volumes:
- "resources:/rodan/data"
celery:
image: "ddmal/rodan-main:${DOCKER_TAG}"
command: bash -c "tail -f /dev/null"
environment:
TZ: America/Toronto
SERVER_HOST: localhost
CELERY_JOB_QUEUE: celery
healthcheck:
test:
[
"CMD",
"celery",
"inspect",
"ping",
"-A",
"rodan",
"--workdir",
"/code/Rodan",
"-d",
"celery@celery"
]
interval: "30s"
timeout: "3s"
start_period: "1m"
retries: 3
depends_on:
- postgres
- rodan-main
- rabbitmq
- redis
env_file:
- ./scripts/local.env
volumes:
- "resources:/rodan/data"
- "./rodan-main/code:/code/Rodan"
py3-celery:
image: "ddmal/rodan-python3-celery:${DOCKER_TAG}"
command: bash -c "tail -f /dev/null"
environment:
TZ: America/Toronto
SERVER_HOST: localhost
CELERY_JOB_QUEUE: Python3
depends_on:
- postgres
- rodan-main
- rabbitmq
- redis
- celery
env_file:
- ./scripts/local.env
volumes:
- "resources:/rodan/data"
- "./rodan-main/code:/code/Rodan"
gpu-celery:
image: "ddmal/rodan-gpu-celery:${DOCKER_TAG}"
command: bash -c "tail -f /dev/null"
environment:
TZ: America/Toronto
SERVER_HOST: localhost
CELERY_JOB_QUEUE: GPU
depends_on:
- postgres
- rodan-main
- rabbitmq
- redis
- celery
env_file:
- ./scripts/local.env
volumes:
- "resources:/rodan/data"
- "./rodan-main/code:/code/Rodan"
redis:
image: "redis:alpine"
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 10s
timeout: 5s
retries: 5
depends_on:
- postgres
postgres:
image: "ddmal/postgres-plpython:${DOCKER_TAG}"
healthcheck:
test: [ "CMD-SHELL", "pg_isready", "-U", "postgres" ]
interval: 10s
timeout: 5s
retries: 5
env_file:
- ./scripts/local.env
rabbitmq:
image: "rabbitmq:alpine"
healthcheck:
test: [ "CMD", "rabbitmq-diagnostics", "-q", "ping" ]
interval: "30s"
timeout: "3s"
retries: 3
depends_on:
- redis
env_file:
- ./scripts/local.env
volumes:
resources: