-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.keycloak.yml
49 lines (45 loc) · 1.26 KB
/
compose.keycloak.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
services:
keycloak-db:
image: postgres:11
env_file:
- ./env/keycloak-db.env
environment:
# unset PGHOST as db service crashes otherwise
PGHOST:
keycloak:
build: services/keycloak
env_file:
- ./env/keycloak.env
entrypoint: /srv/softwareheritage/entrypoint.sh
environment:
JAVA_TOOL_OPTIONS: "-Dkeycloak.profile=preview
-Dkeycloak.profile.feature.token_exchange=enabled"
volumes:
- "./services/keycloak/entrypoint.sh:/srv/softwareheritage/entrypoint.sh:ro"
- "./services/keycloak/keycloak_swh_setup.py:/keycloak_swh_setup.py:ro"
expose:
- "8080"
depends_on:
- keycloak-db
swh-web:
depends_on:
keycloak:
condition: service_started
docker-helper:
condition: service_healthy
environment:
SWH_CONFIG_FILENAME: /srv/softwareheritage/config-kc.yml
volumes:
- "./conf/web-keycloak.yml:/srv/softwareheritage/config-kc.yml.in:ro"
swh-deposit:
depends_on:
- keycloak
environment:
MEMCACHED: "yes"
volumes:
- "./conf/deposit-keycloak.yml:/srv/softwareheritage/config.yml:ro"
swh-graphql:
depends_on:
- keycloak
volumes:
- "./conf/graphql-keycloak.yml:/srv/softwareheritage/config.yml:ro"