'Bitnami Keycloak container can't finish a setup
I tried to run keycloak and postgresql with docker containers and docker compose. When keycloak is processing setup it exited with code 1
My docker compose:
version: "3.3"
services:
db:
image: postgres
restart: always
environment:
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: neisho9eeseiR9cei8OhngooCh1zio0p
POSTGRES_DB: keycloak
ports:
- 8891:5432
volumes:
- ./storage/psql:/var/lib/postgresql/data
networks:
net:
keycloak:
image: bitnami/keycloak:latest
environment:
KEYCLOAK_ADMIN_USER: keycloak
KEYCLOAK_ADMIN_PASSWORD: neisho9eeseiR9cei8OhngooCh1zio0p
KEYCLOAK_MANAGEMENT_USER: keycloak_manager
KEYCLOAK_MANAGEMENT_PASSWORD: neisho9eeseiR9cei8OhngooCh1zio0p
KEYCLOAK_DATABASE_HOST: db
KEYCLOAK_DATABASE_NAME: keycloak
KEYCLOAK_DATABASE_USER: keycloak
KEYCLOAK_DATABASE_PASSWORD: neisho9eeseiR9cei8OhngooCh1zio0p
KEYCLOAK_JGROUPS_DISCOVERY_PROTOCOL: JDBC_PING
KEYCLOAK_CACHE_OWNERS_COUNT: 3
KEYCLOAK_AUTH_CACHE_OWNERS_COUNT: 3
depends_on:
- db
ports:
- 8890:8080
networks:
net:
networks:
net:
driver: bridge
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|