Podman-compose. Error pinging database (my-config.yml)

I’m trying to move my-config.yml to a docker container (podman). After entering the command, nakama returns this error.

[nakama]      | {"level":"fatal","ts":"2023-10-16T15:31:00.669Z","caller":"server/db.go:86","msg":"Error pinging database","error":"failed to connect to `host=localhost user=root database=nakama`: dial error (dial tcp connect: connection refused)"}
exit code: 1

This error could be due to a multitude of reasons, please provide more information on what changes you’ve made.