fdonnet / ubik_accounting

Double entry accounting app in Net 8

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

keycloak not starting with docker-compoose

mihaimyh opened this issue · comments

Running docker-compose up and getting the following error:

ubik-keycloak     | Unknown option: 'start-dev'
ubik-keycloak     | Did you mean: kc.sh start-dev or kc.sh import or kc.sh start?
ubik-keycloak     | Try 'kc.sh --help' for more information on the available options.
ubik-keycloak exited with code 2
$ docker-compose -v
Docker Compose version v2.20.2-desktop.1

Which docker-compose version should I use?

on my side it's Docker Compose version v2.23.0-desktop.1
for you it fails on

  keycloak:

    command:
      - "start-dev --import-realm"

very strange because the entry point for keycloack seems correct

 entrypoint:
      - "/opt/keycloak/bin/kc.sh"

On my side it's working on 2 different machines

Ok I removed all my keycloack images and volumes etc and I have the same issue as you. I will correct and come back

Problem solved in docker compose, you can pull from main

  keycloak:

    command:
      - "start-dev"
      - "--import-realm"

Normally it will work now.
Thx for the finding... it's was working on my side with the command chained and I don't know why.

Normally you will be able to access Keycloack on:
http://localhost:8080/admin/master/console/
(admin/admin)

No feedback but tested on my side with a "clean" docker state (all keycloack imgs, volumes and containers removed) and now it works as expected.