This repository has been archived by the owner on Apr 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
194 lines (173 loc) · 4.24 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
# ------------------------------------------------------------------------------
# Config file for these containers:
#
# * Databases + NGINX + Minio + Keycloak
# * Aether Kernel
# * Entity Extractor
# * ODK Module
# * Aether UI & UI Assets
# ------------------------------------------------------------------------------
networks:
# docker network create ${NETWORK_NAME}
internal:
# if this isn't explicitly set it inherits from the containing folder name (aether or not)
name: ${NETWORK_NAME}
external: true
volumes:
# docker volume create ${DB_VOLUME}
database_data:
name: ${DB_VOLUME}
external: true
redis_data: {}
services:
# -------------------------------------
# Databases + NGINX + Minio + Keycloak
# -------------------------------------
db:
extends:
file: ./docker-compose-base.yml
service: postgres-base
volumes:
- database_data:/var/lib/postgresql/data
networks:
- internal
redis:
extends:
file: ./docker-compose-base.yml
service: redis-base
volumes:
- redis_data:/var/lib/redis/data
networks:
- internal
nginx:
extends:
file: ./docker-compose-base.yml
service: nginx-base
networks:
internal:
ipv4_address: ${NETWORK_NGINX_IP}
minio:
extends:
file: ./docker-compose-base.yml
service: minio-base
depends_on:
nginx:
condition: service_healthy
networks:
- internal
keycloak:
extends:
file: ./docker-compose-base.yml
service: keycloak-base
depends_on:
db:
condition: service_healthy
nginx:
condition: service_healthy
networks:
- internal
extra_hosts:
- ${NETWORK_DOMAIN}:${NETWORK_NGINX_IP}
# ---------------------------------
# Entity Extractor
# ---------------------------------
exm:
extends:
file: ./docker-compose-base.yml
service: exm-base
depends_on:
redis:
condition: service_started
networks:
- internal
# ---------------------------------
# Aether Kernel
# ---------------------------------
kernel:
extends:
file: ./docker-compose-base.yml
service: kernel-base
volumes:
# static folder
- ./.persistent_data/static/kernel:/var/www/static
# backup folder
- ./.persistent_data/backups/kernel:/backups
depends_on:
db:
condition: service_healthy
keycloak:
condition: service_started
minio:
condition: service_started
nginx:
condition: service_healthy
redis:
condition: service_started
networks:
- internal
extra_hosts:
- ${NETWORK_DOMAIN}:${NETWORK_NGINX_IP}
# ---------------------------------
# Aether UI
# ---------------------------------
ui-assets:
extends:
file: ./docker-compose-base.yml
service: ui-assets-base
networks:
- internal
ui:
extends:
file: ./docker-compose-base.yml
service: ui-base
volumes:
# static folder
- ./.persistent_data/static/ui:/var/www/static
# backup folder
- ./.persistent_data/backups/ui:/backups
depends_on:
db:
condition: service_healthy
keycloak:
condition: service_started
nginx:
condition: service_healthy
redis:
condition: service_started
kernel:
condition: service_started
ui-assets:
condition: service_started
networks:
- internal
extra_hosts:
- ${NETWORK_DOMAIN}:${NETWORK_NGINX_IP}
# ---------------------------------
# ODK module
# ---------------------------------
odk:
extends:
file: ./docker-compose-base.yml
service: odk-base
volumes:
# static folder
- ./.persistent_data/static/odk:/var/www/static
# backup folder
- ./.persistent_data/backups/odk:/backups
depends_on:
db:
condition: service_healthy
keycloak:
condition: service_started
minio:
condition: service_started
nginx:
condition: service_healthy
redis:
condition: service_started
kernel:
condition: service_started
networks:
- internal
extra_hosts:
- ${NETWORK_DOMAIN}:${NETWORK_NGINX_IP}