mirror of
https://github.com/derlin/mantelo.git
synced 2026-08-31 06:07:20 +02:00
5bf2263273
This makes the keycloak container fail to start on Keycloak 26 with: ERROR: Aborting startup and the creation of the master realm, because the temporary admin user account could not be created The conflicts comes from the admin user being created on realm import already.
33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
services:
|
|
keycloak:
|
|
image: quay.io/keycloak/keycloak:latest
|
|
command: start-dev --import-realm
|
|
ports:
|
|
- 9090:8080
|
|
environment:
|
|
# The admin user will be created during realm import
|
|
#KEYCLOAK_ADMIN: admin
|
|
#KEYCLOAK_ADMIN_PASSWORD: admin
|
|
KC_HEALTH_ENABLED: true
|
|
volumes:
|
|
- ./tests/realms:/opt/keycloak/data/import
|
|
healthcheck:
|
|
test: ['CMD-SHELL', '[ -f /tmp/HealthCheck.java ] || echo "public class HealthCheck { public static void main(String[] args) throws java.lang.Throwable { System.exit(java.net.HttpURLConnection.HTTP_OK == ((java.net.HttpURLConnection)new java.net.URI(args[0]).toURL().openConnection()).getResponseCode() ? 0 : 1); } }" > /tmp/HealthCheck.java && java /tmp/HealthCheck.java http://localhost:9000/health/live']
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 3
|
|
|
|
tox:
|
|
image: divio/multi-python:latest
|
|
user: '${UID}:${GID}'
|
|
profiles: [test]
|
|
command: tox
|
|
environment:
|
|
TEST_SERVER_URL: http://keycloak:8080
|
|
volumes:
|
|
- .:/app
|
|
depends_on:
|
|
- keycloak
|
|
links:
|
|
- keycloak
|