Skip to content

Commit

Permalink
fix: unset ADMIN variables
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
derlin committed Oct 6, 2024
1 parent 463be01 commit 5bf2263
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ services:
ports:
- 9090:8080
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
# 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
Expand Down

0 comments on commit 5bf2263

Please sign in to comment.