-
Notifications
You must be signed in to change notification settings - Fork 322
/
docker-compose.yml
46 lines (46 loc) · 1.5 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
volumes:
postgres:
services:
postgres:
environment:
- POSTGRES_DB=keycloak
- POSTGRES_USER=keycloak
- POSTGRES_PASSWORD=password
image: postgres:16
volumes:
- postgres:/var/lib/postgresql
openldap:
image: bitnami/openldap:2.6
environment:
LDAP_PORT_NUMBER: 389
keycloak:
image: quay.io/keycloak/keycloak:26.0.7
command: --verbose start-dev --features=preview
depends_on:
- postgres
- openldap
environment:
- KC_BOOTSTRAP_ADMIN_USERNAME=keycloak
- KC_BOOTSTRAP_ADMIN_PASSWORD=password
- KC_LOG_LEVEL=INFO
- KC_DB=postgres
- KC_DB_URL_HOST=postgres
- KC_DB_URL_PORT=5432
- KC_DB_URL_DATABASE=keycloak
- KC_DB_USERNAME=keycloak
- KC_DB_PASSWORD=password
- KC_LOG_LEVEL=INFO
- KC_LOG_CONSOLE_COLOR=true
- KC_FEATURES=preview
- QUARKUS_HTTP_ACCESS_LOG_ENABLED=true
- QUARKUS_HTTP_RECORD_REQUEST_START_TIME=true
# Enable for remote java debugging
# - PREPEND_JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:8787
ports:
- "8080:8080"
# Enable for remote java debugging
# - 8787:8787
volumes:
# Make the custom-user-federation-example extension available to Keycloak. The :z option is required and tells Docker that the volume content will be shared between containers.
- ./custom-user-federation-example/build/libs/custom-user-federation-example-all.jar:/opt/keycloak/providers/custom-user-federation-example-all.jar:z
- ./provider/misc:/opt/keycloak/misc:z