Unable to run 'docker compose up -d postgresql' for major upgrade

System info
NAME=“CentOS Linux”
Docker version 23.0.2, build 569dd73

I have tried both Docker Compose version v2.17.2 and docker-compose version 1.29.2, build 5becea4c to Launch the database container alone. It didnt work

docker-compose --file docker-compose.yml --project-name mayan up --detach postgresql

output:

yaml: unmarshal errors:
line 59: mapping key “<<” already defined at line 58
line 60: mapping key “<<” already defined at line 58
line 60: mapping key “<<” already defined at line 59
line 133: mapping key “image” already defined at line 127
line 138: mapping key “restart” already defined at line 128
line 204: mapping key “<<” already defined at line 203
line 205: mapping key “<<” already defined at line 203
line 205: mapping key “<<” already defined at line 204

docker compose --file docker-compose.yml --project-name mayan up --detach postgresql

output

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

Docker compose upgrade to 2.17.0 breaks yaml config - Bugs or errors - Mayan EDMS community forum (mayan-edms.com)

^ this answer was helpful in solving the issue. I fixed it.

1 Like

Have it fixed for version 4.5. Testing to see if this needs to be backported without compatibility issues.

4 posts were split to a new topic: Error when settings KC_HOSTNAME_STRICT