A bit late but there are two separate issues here :
I followed one such guide/tutorial aswell, and they're all outdated or straight wrong (imo, likely GTP-written). This had me RTFM.
- The ENV variables "KEYCLOAK_USER" and "KEYCLOAK_PASSWORD" are no longer correct. Most tutorials you'll find will thus fail with recent versions of keycloak.
From the documentation (https://www.keycloak.org/server/all-config?q=bootstrap) and (https://www.keycloak.org/server/configuration#_creating_the_initial_admin_user), you'll need to use
- KC_BOOTSTRAP_ADMIN_USERNAME=<username>
- KC_BOOTSTRAP_ADMIN_PASSWORD=<password>
This should allow you to connect using whatever user/pwd you provided.
- While I'm unsure about the cookies issue with only the provided info, it may have to do with you not serving over https. I believe working with http is only going to work in dev mode, not in production mode (for obvious security reasons). (https://www.keycloak.org/server/configuration#_starting_keycloak_in_development_mode)
Tldr : To specify you're in dev mode, in your docker-compose.yml, in the keycloak conf :