-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
190 lines (168 loc) · 4.8 KB
/
compose.yaml
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
# SPDX-FileCopyrightText: 2023 - 2024 GESIS - Leibniz-Institut für Sozialwissenschaften
# SPDX-FileContributor: Raniere Gaia Costa da Silva <[email protected]>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
services:
sphinx:
profiles:
- docs
image: docker-private.gesis.intra/rse/docker/images/sphinx-doc:2.2.0
command: sphinx-autobuild --host 0.0.0.0 /mnt/docs/source /mnt/docs/build
volumes:
- type: bind
source: docs
target: /mnt/docs
read_only: true
- sphinx-doc-build:/mnt/docs/build
expose:
- "8000"
ports:
- "8000:8000"
apicurito-ui:
profiles:
- docs
image: apicurio/apicurito-ui:1.2.4
ports:
- "8008:8080"
reverse-proxy:
depends_on:
- keycloak
- magdalena-web
image: nginx:1.25.4-alpine-slim
expose:
- "80"
ports:
- "80:80"
volumes:
- type: bind
source: ./nginx/sites-enabled
target: /etc/nginx/conf.d
# On 20 March 2024, Redis moved away from the BSD license.
# The last Redis release under the BSD license was version 7.2.4.
#
# In the future, we might want to move to https://valkey.io/
redis:
image: redis:7.2.4-alpine3.19
magdalena-worker:
build:
context: .
target: dev
environment:
# Celery
CELERY_BROKER_URL: "redis://redis"
CELERY_BACKEND_URL: "redis://redis"
# Flask
LOG_LEVEL: debug
# JWT
JWT_ISSUER: http://keycloak.gesis/realms/gesis
# Keycloak
KEYCLOAK_SCHEME: http
KEYCLOAK_DOMAIN: keycloak.gesis
KEYCLOAK_REALM: gesis
KEYCLOAK_CLIENT: gesis-methodshub-ember-client
# Keycloak (Backend)
#
# Used to retrieve the public key from Keycloak.
BACKEND_KEYCLOAK_SCHEME: http
BACKEND_KEYCLOAK_DOMAIN: keycloak:8080
# Keycloak (Frontend)
#
# Used to configure keycloak-js.
# FRONTEND_KEYCLOAK_SCHEME: http
# FRONTEND_KEYCLOAK_DOMAIN: keycloak.gesis
# magdalena
MYBINDER_URL: https://notebooks.gesis.org/binder
MAGDALENA_SHARED_DIR: /tmp/magdalena-shared-volume
AUTHORIZATION_REQUIRED: True
MAGDALENA_GRAPHQL_TARGET_URL: http://localhost/graphql
MAGDALENA_GRAPHQL_TARGET_TOKEN: 123456
volumes:
- type: bind
source: .
target: /var/magdalena
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock
- type: bind
# This must be the same as MAGDALENA_SHARED_DIR
# because of Docker outside of Docker
source: /tmp/magdalena-shared-volume
target: /tmp/magdalena-shared-volume
depends_on:
keycloak:
condition: service_healthy
restart: true
redis:
condition: service_started
command: celery -A magdalena.worker worker --loglevel=INFO
magdalena-web:
build:
context: .
target: dev
environment:
# Celery
CELERY_BROKER_URL: "redis://redis"
CELERY_BACKEND_URL: "redis://redis"
# Flask
LOG_LEVEL: debug
# JWT
JWT_ISSUER: http://keycloak.gesis/realms/gesis
# Keycloak
KEYCLOAK_SCHEME: http
KEYCLOAK_DOMAIN: keycloak.gesis
KEYCLOAK_REALM: gesis
KEYCLOAK_CLIENT: gesis-methodshub-ember-client
# Keycloak (Backend)
#
# Used to retrieve the public key from Keycloak.
BACKEND_KEYCLOAK_SCHEME: http
BACKEND_KEYCLOAK_DOMAIN: keycloak:8080
# Keycloak (Frontend)
#
# Used to configure keycloak-js.
# FRONTEND_KEYCLOAK_SCHEME: http
# FRONTEND_KEYCLOAK_DOMAIN: keycloak.gesis
# magdalena
MYBINDER_URL: https://notebooks.gesis.org/binder
MAGDALENA_SHARED_DIR: /tmp/magdalena-shared-volume
AUTHORIZATION_REQUIRED: True
MAGDALENA_GRAPHQL_TARGET_URL: http://localhost/graphql
MAGDALENA_GRAPHQL_TARGET_TOKEN: 123456
volumes:
- type: bind
source: .
target: /var/magdalena
- type: bind
source: /var/run/docker.sock
target: /var/run/docker.sock
- type: bind
# This must be the same as MAGDALENA_SHARED_DIR
# because of Docker outside of Docker
source: /tmp/magdalena-shared-volume
target: /tmp/magdalena-shared-volume
depends_on:
keycloak:
condition: service_healthy
restart: true
redis:
condition: service_started
magdalena-worker:
condition: service_started
expose:
- "5000"
ports:
- "4200:5000"
command: flask run --host 0.0.0.0 --port 5000 --reload --debug --debugger
keycloak:
extends:
file: keycloak/compose.yaml
service: keycloak
depends_on:
- keycloak-db
keycloak-db:
extends:
file: keycloak/compose.yaml
service: keycloak-db
volumes:
keycloak-data:
sphinx-doc-build: