Error when settings KC_HOSTNAME_STRICT

I get the same error on a completely fresh install, just pulled docker-compose.yml today:
System : Ubuntu 22.04.2
Docker installed from APT :
Client:
Version: 20.10.21
API version: 1.41
Go version: go1.18.1
Git commit: 20.10.21-0ubuntu1~22.04.2
Built: Thu Mar 2 18:26:04 2023
OS/Arch: linux/amd64
Context: default
Experimental: true

Server:
Engine:
Version: 20.10.21
API version: 1.41 (minimum version 1.12)
Go version: go1.18.1
Git commit: 20.10.21-0ubuntu1~22.04.2
Built: Wed Feb 15 15:26:57 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.12-0ubuntu1~22.04.1
GitCommit:
runc:
Version: 1.1.4-0ubuntu1~22.04.1
GitCommit:
docker-init:
Version: 0.19.0
GitCommit:

docker-compose version 1.29.2, build unknown
docker-py version: 5.0.3
CPython version: 3.10.6
OpenSSL version: OpenSSL 3.0.2 15 Mar 2022

root@mayan:~# docker-compose -f docker-compose.yml up -d
ERROR: The Compose file ‘./docker-compose.yml’ is invalid because:
services.keycloak.environment.KC_HOSTNAME_STRICT contains false, which is an invalid type, it should be a string, number, or a null

How did you fix it? I see nothing on services.keycloak.environment.KC_HOSTNAME_STRICT in the mentioned thread. Thanks!!

I solved it. In the docker-compose.yml, edit it to the following:
keycloak:
command:
- start
environment:
KC_HOSTNAME_STRICT: 0
KC_HTTP_ENABLED: 1

Instead of false/true, now the installer works

1 Like

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.