-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
94 lines (88 loc) · 2.91 KB
/
docker-compose.yml
File metadata and controls
94 lines (88 loc) · 2.91 KB
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
services:
keycloak:
container_name: keycloak
hostname: keycloak
image: quay.io/keycloak/keycloak:26.5.7
depends_on:
- postgres
environment:
DEBUG_PORT: '*:8787'
DEBUG: 'true'
KC_BOOTSTRAP_ADMIN_USERNAME: admin
KC_BOOTSTRAP_ADMIN_PASSWORD: admin
KC_DB_URL: jdbc:postgresql://postgres:5432/keycloak
KC_DB_USER: keycloak
KC_DB_PASSWORD: keycloak
KC_LOG_CONSOLE_COLOR: 'true'
KC_LOG_LEVEL: INFO,org.b2code:TRACE
KC_LOG_CONSOLE_INCLUDE_TRACE: 'false'
command: [ 'start-dev', '--debug', '--verbose', '--db', 'postgres', '--features', 'opentelemetry', '--tracing-enabled', 'true', '--tracing-sampler-type', 'always_on', '--tracing-endpoint', 'http://jaeger:4317' ]
ports:
- "8080:8080"
- "8443:8443"
- "8787:8787"
volumes:
- ./provider/target/keycloak-geoaware-shaded.jar:/opt/keycloak/providers/extension.jar
- ./provider/src/main/resources/dev/cfg/keycloak.conf:/opt/keycloak/conf/keycloak.conf
- ./integration-test/src/test/resources/GeoIP2-City-Test.mmdb:/opt/keycloak/data/geoaware/GeoIP2-City-Test.mmdb
- ./integration-test/src/test/resources/GeoLite2-City-Test.mmdb:/opt/keycloak/data/geoaware/GeoLite2-City-Test.mmdb
postgres:
container_name: postgres
hostname: postgres
image: postgres:18
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: keycloak
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql
jaeger:
container_name: jaeger
hostname: jaeger
image: jaegertracing/all-in-one
ports:
- "16686:16686"
maildev:
container_name: maildev
hostname: maildev
image: maildev/maildev
environment:
- MAILDEV_WEB_PORT=8081
- MAILDEV_SMTP_PORT=8025
ports:
- "8081:8081"
- "8025:8025"
export-keycloak-realm:
container_name: keycloak-export
image: quay.io/keycloak/keycloak:26.5.7
profiles:
- export-realm
depends_on:
- postgres
environment:
KC_DB_URL: jdbc:postgresql://postgres:5432/keycloak
KC_DB_USER: keycloak
KC_DB_PASSWORD: keycloak
KC_LOG_CONSOLE_COLOR: 'true'
command: [ 'export', '--dir', '/opt/keycloak/data/export', '--db', 'postgres', '--users', 'same_file', '--realm', 'test' ]
volumes:
- ./provider/src/test/resources/realms:/opt/keycloak/data/export
import-keycloak-realm:
container_name: keycloak-import
image: quay.io/keycloak/keycloak:26.5.7
profiles:
- import-realm
depends_on:
- postgres
environment:
KC_DB_URL: jdbc:postgresql://postgres:5432/keycloak
KC_DB_USER: keycloak
KC_DB_PASSWORD: keycloak
KC_LOG_CONSOLE_COLOR: 'true'
command: [ 'import', '--dir', '/opt/keycloak/data/import', '--db', 'postgres' ]
volumes:
- ./provider/src/test/resources/realms:/opt/keycloak/data/import
volumes:
postgres-data: