1919# LIVE_DEBUGGER_BASE_URL (default https://test.idptools.com)
2020# LIVE_CONFIG_FILE (default ./env/test-idptools-com.js)
2121services :
22+ postgres :
23+ image : postgres:18
24+ volumes :
25+ - postgres_data:/var/lib/postgresql/data
26+ environment :
27+ POSTGRES_USER : keycloak
28+ POSTGRES_PASSWORD : keycloak
29+ POSTGRES_DB : keycloak
30+ # postgres:18 refuses to start on a data dir initialized by an older
31+ # major version. Initialize into a fresh subdirectory of the volume so
32+ # the upgrade starts cleanly (test data is disposable and recreated each
33+ # run); any legacy PG17 files at the volume root are ignored.
34+ PGDATA : /var/lib/postgresql/data/pgdata
35+ healthcheck :
36+ test : pg_isready
37+ interval : 10s
38+ timeout : 60s
39+ retries : 5
40+ start_period : 45s
41+ networks :
42+ - keycloak
43+
2244 keycloak :
2345 image : quay.io/keycloak/keycloak:26.6.4
2446 command : ["start-dev"]
25- hostname : keycloak
26- network_mode : " host"
2747 environment :
28- KC_HTTP_PORT : " 8080"
29- KC_BOOTSTRAP_ADMIN_USERNAME : keycloak
30- KC_BOOTSTRAP_ADMIN_PASSWORD : keycloak
48+ KC_DB : postgres
49+ KC_DB_URL : jdbc:postgresql://postgres:5432/keycloak
50+ KC_DB_USERNAME : keycloak
51+ KC_DB_PASSWORD : keycloak
3152 KEYCLOAK_ADMIN : keycloak
3253 KEYCLOAK_ADMIN_PASSWORD : keycloak
3354 KC_HEALTH_ENABLED : " true"
@@ -37,12 +58,11 @@ services:
3758 build :
3859 context : .
3960 dockerfile : tests/Dockerfile
40- network_mode : " host"
4161 environment :
4262 # Target the deployed site; talk to the local Keycloak over loopback.
4363 - DEBUGGER_BASE_URL=${LIVE_DEBUGGER_BASE_URL:-https://test.idptools.com}
44- - KEYCLOAK_BASE_URL=http://localhost :8080
45- - KEYCLOAK_LOCALHOST_BASE_URL=http://localhost :8080
64+ - KEYCLOAK_BASE_URL=http://keycloak :8080
65+ - KEYCLOAK_LOCALHOST_BASE_URL=http://keycloak :8080
4666 - CONFIG_FILE=${LIVE_CONFIG_FILE:-./env/test-idptools-com.js}
4767 # Persist the generated report/logs to the host (gitignored).
4868 volumes :
0 commit comments