-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
202 lines (201 loc) · 5.03 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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
version: "3.7"
services:
# base image, just built it and tag
common:
build:
context: .
dockerfile: Dockerfile
args:
BUILDKIT_INLINE_CACHE: 1
image: "${DOCKER_USER}/common:${DOCKER_TAG}"
arangodb:
build: arango
image: "${DOCKER_USER}/arango:${DOCKER_TAG}"
ports:
- "${DOCKER_PORT_PREFIX}0:8529"
secrets:
- arango_secrets
volumes:
- arangodb_data_container:/var/lib/arangodb3
- arangodb_apps_data_container:/var/lib/arangodb3-apps
annotation:
image: "${DOCKER_USER}/annotation:${DOCKER_TAG}"
build:
context: .
dockerfile: annotation/Dockerfile
args:
docker_user: "${DOCKER_USER}"
docker_tag: "${DOCKER_TAG}"
BUILDKIT_INLINE_CACHE: 1
ports:
- "${DOCKER_PORT_PREFIX}1:8501"
depends_on:
- arangodb
secrets:
- arango_secrets
environment:
ARANGODB_URL: http://arangodb:8529
LOGGING_LEVEL: INFO
reporting_app:
image: "${DOCKER_USER}/reporting_app:${DOCKER_TAG}"
build:
context: .
dockerfile: reporting_app/Dockerfile
args:
docker_user: "${DOCKER_USER}"
docker_tag: "${DOCKER_TAG}"
BUILDKIT_INLINE_CACHE: 1
ports:
- "${DOCKER_PORT_PREFIX}4:8501"
depends_on:
- arangodb
secrets:
- arango_secrets
environment:
ARANGODB_URL: http://arangodb:8529
LOGGING_LEVEL: INFO
airflow_db:
image: mysql:5.7
volumes:
- airflow_db_data:/var/lib/mysql
restart: always
command: bash -c "source /run/secrets/airflow_secrets && /entrypoint.sh mysqld --explicit_defaults_for_timestamp=1"
secrets:
- airflow_secrets
airflow_www:
image: "${DOCKER_USER}/common:${DOCKER_TAG}"
depends_on:
- airflow_db
secrets:
- airflow_secrets
ports:
- "${DOCKER_PORT_PREFIX}3:8080"
environment:
AIRFLOW__CORE__EXECUTOR: LocalExecutor
command: bash -c "source /run/secrets/airflow_secrets && airflow webserver"
airflow_scheduler:
image: "${DOCKER_USER}/airflow_scheduler:${DOCKER_TAG}"
shm_size: 512M
build:
context: .
dockerfile: airflow/Dockerfile
args:
docker_user: "${DOCKER_USER}"
docker_tag: "${DOCKER_TAG}"
BUILDKIT_INLINE_CACHE: 1
depends_on:
- airflow_db
- arangodb
secrets:
- airflow_secrets
- arango_secrets
- webdav_secrets
volumes:
- ./raw_data:/mair/raw_data
- ./log_dir:/mair/log_dir
- airflow_logs:/root/airflow/logs
environment:
AIRFLOW__CORE__EXECUTOR: LocalExecutor
AIRFLOW__CORE__LOAD_EXAMPLES: 0
EXPLICIT_DEFAULTS_FOR_TIMESTAMP: 1
USER: poznan
ARANGODB_URL: http://arangodb:8529
USE_WEBDAV: 0
LOGGING_LEVEL: DEBUG
command: bash -c "source /run/secrets/airflow_secrets && airflow db init && airflow scheduler"
webdav:
image: "${DOCKER_USER}/webdav:${DOCKER_TAG}"
build: webdav
secrets:
- webdav_secrets
volumes:
- ./raw_data:/storage
ports:
- "${DOCKER_PORT_PREFIX}2:8080"
tests:
shm_size: 512M
build:
context: .
dockerfile: tests/Dockerfile
args:
docker_user: "${DOCKER_USER}"
docker_tag: "${DOCKER_TAG}"
depends_on:
- arangodb
secrets:
- arango_secrets
volumes:
- ./raw_data:/mair/raw_data
- ./log_dir:/mair/log_dir
environment:
USER: tests
ARANGODB_URL: http://arangodb:8529
USE_WEBDAV: 0
redis:
image: redis:6-alpine
secrets:
- redis_conf
command: "redis-server /run/secrets/redis_conf"
webserver:
image: "${DOCKER_USER}/webserver:${DOCKER_TAG}"
build:
context: .
dockerfile: webserver/Dockerfile
args:
docker_user: "${DOCKER_USER}"
docker_tag: "${DOCKER_TAG}"
BUILDKIT_INLINE_CACHE: 1
ports:
- "${DOCKER_PORT_PREFIX}5:5000"
depends_on:
- arangodb
- redis
secrets:
- arango_secrets
- webdav_secrets
- redis_secrets
volumes:
- ./raw_data:/mair/raw_data
- ./log_dir:/mair/log_dir
environment:
ARANGODB_URL: http://arangodb:8529
LOGGING_LEVEL: INFO
rq_worker:
image: "${DOCKER_USER}/rq_worker:${DOCKER_TAG}"
build:
context: .
dockerfile: rq_worker/Dockerfile
args:
docker_user: "${DOCKER_USER}"
docker_tag: "${DOCKER_TAG}"
BUILDKIT_INLINE_CACHE: 1
depends_on:
- arangodb
- redis
secrets:
- arango_secrets
- webdav_secrets
- redis_secrets
volumes:
- ./raw_data:/mair/raw_data
- ./log_dir:/mair/log_dir
environment:
ARANGODB_URL: http://arangodb:8529
LOGGING_LEVEL: DEBUG
USE_WEBDAV: 0
volumes:
arangodb_data_container:
arangodb_apps_data_container:
airflow_db_data:
airflow_logs:
secrets:
airflow_secrets:
file: secrets/airflow.env
arango_secrets:
file: secrets/arango.env
webdav_secrets:
file: secrets/webdav.env
redis_secrets:
file: secrets/redis.env
redis_conf:
file: secrets/redis.conf