-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.env.docker.example
More file actions
73 lines (64 loc) · 2.73 KB
/
.env.docker.example
File metadata and controls
73 lines (64 loc) · 2.73 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
# OBP Keycloak Provider — Docker environment example
#
# Use this as a starting point for running the published Docker image:
#
# docker run \
# --env-file .env \
# -p 7787:8080 -p 8443:8443 -p 9000:9000 \
# tesobe/obp-keycloak:latest
#
# Or reference it from docker-compose:
#
# services:
# keycloak:
# image: tesobe/obp-keycloak:latest
# env_file: .env.docker.example
#
# All sensitive values must be overridden — do NOT use these defaults in production.
# =============================================================================
# KEYCLOAK ADMIN
# =============================================================================
KEYCLOAK_ADMIN=admin
KEYCLOAK_ADMIN_PASSWORD=change_me
# =============================================================================
# KEYCLOAK INTERNAL DATABASE
# Keycloak needs its own PostgreSQL database for realm data, clients, tokens.
# =============================================================================
KC_DB_URL=jdbc:postgresql://keycloak-postgres:5432/keycloak
KC_DB_USERNAME=keycloak
KC_DB_PASSWORD=change_me
# =============================================================================
# OBP API — all user authentication delegates to these endpoints
#
# Flow inside the container:
# POST /obp/v6.0.0/my/logins/direct → admin token
# GET /obp/v6.0.0/users/provider/{P}/username/{U} → user lookup
# POST /obp/v6.0.0/users/verify-credentials → password check
# GET /obp/v6.0.0/users/user-id/{ID} → post-auth lookup
#
# Required roles on OBP_API_USERNAME:
# CanGetAnyUser, CanVerifyUserCredentials, CanGetOidcClient
# =============================================================================
# If OBP runs on the same host machine use host.docker.internal, not localhost
OBP_API_URL=http://host.docker.internal:8080
OBP_API_USERNAME=obp_admin_user
OBP_API_PASSWORD=change_me
# Consumer key registered in OBP for Direct Login
OBP_API_CONSUMER_KEY=your_consumer_key
# MANDATORY: only users whose OBP `provider` field exactly matches this value
# will be authenticated through Keycloak.
OBP_AUTHUSER_PROVIDER=http://127.0.0.1:8080
# =============================================================================
# KEYCLOAK RUNTIME
# =============================================================================
KC_HOSTNAME_STRICT=false
KC_HOSTNAME_STRICT_HTTPS=false
KC_HTTP_ENABLED=true
KC_HEALTH_ENABLED=true
KC_METRICS_ENABLED=true
KC_FEATURES=token-exchange
# =============================================================================
# THEME CUSTOMISATION (optional)
# Override the "Forgot Password?" link. Leave empty for Keycloak's built-in flow.
# =============================================================================
FORGOT_PASSWORD_URL=