postgres password problem
Hi, I am trying to run zitadel in a docker container on a vps. On the vps I also have a postgres db running, also in docker.
I created two users for zitadel: zitadel_root and zitadel_user. When I try to connect to the database with those users using DBeaver, everything works fine. But the Zitadel container gives the following error:
When I go to the database container I see a corresponding log:
I have configured zitadel using config files:
and
Anyone any idea what is going on?
I created two users for zitadel: zitadel_root and zitadel_user. When I try to connect to the database with those users using DBeaver, everything works fine. But the Zitadel container gives the following error:
time="2025-09-23T20:36:47Z" level=info msg="initialization started" caller="/home/runner/work/zitadel/zitadel/cmd/initialise/init.go:70"
time="2025-09-23T20:36:47Z" level=fatal msg="unable to initialize the database" caller="/home/runner/work/zitadel/zitadel/cmd/initialise/init.go:63" error="failed to connect to: 5.75.247.152:5432 (5.75.247.152): server error: FATAL: password authentication failed for user "zitadel_root" (SQLSTATE 28P01)"user=zitadel_root database=postgres
When I go to the database container I see a corresponding log:
2025-09-23 20:36:47.626 UTC [71017] FATAL: password authentication failed for user "zitadel_root"
2025-09-23 20:36:47.626 UTC [71017] DETAIL: Password does not match for user "zitadel_root".
Connection matched file "/data/postgres/pg_hba.conf" line 120: "host all all 172.19.0.1/8 password"
I have configured zitadel using config files:
config.yaml:and
secrets.yaml:Anyone any idea what is going on?
