forked from keycloak/terraform-provider-keycloak
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (49 loc) · 1.58 KB
/
Copy pathdocker-compose.yml
File metadata and controls
49 lines (49 loc) · 1.58 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
volumes:
postgres:
services:
postgres:
environment:
- POSTGRES_DB=keycloak
- POSTGRES_USER=keycloak
- POSTGRES_PASSWORD=password
image: postgres:16
volumes:
- postgres:/var/lib/postgresql
openldap:
image: bitnamilegacy/openldap:2.6
environment:
LDAP_PORT_NUMBER: 389
keycloak:
image: quay.io/keycloak/keycloak:26.4.7
command: --verbose start-dev
depends_on:
- postgres
- openldap
environment:
- KC_BOOTSTRAP_ADMIN_USERNAME=keycloak
- KC_BOOTSTRAP_ADMIN_PASSWORD=password
- KC_LOG_LEVEL=INFO
- KC_HTTP_ACCESS_LOG_ENABLED=true
- 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_CONSOLE_COLOR=true
- KC_FEATURES=preview,admin-fine-grained-authz:v1
- KC_HTTPS_CERTIFICATE_FILE=/opt/keycloak/testdata/tls/server-cert.pem
- KC_HTTPS_CERTIFICATE_KEY_FILE=/opt/keycloak/testdata/tls/server-key.pem
# Enable for remote java debugging
# - DEBUG=true
# - DEBUG_PORT=*:8787
# - DEBUG_SUSPEND=y
ports:
- "8080:8080"
- "8443:8443"
# 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/testdata:/opt/keycloak/testdata:z