Hi, @calamas! Try to use some services on converting docker-compose file to docker run commands, like this one. After few minutes of playing with it I got this commands sequence(warning, no healthcheck, everything other is 1-per-1 as in docker-compose.yml):
Here you can see how you can pass the --database.address argument.
As for Nakama internals, it uses pgconn library to form the connection string. Which used through libpq this list of environment variables. But playing few minutes in debugging Nakama I found hardcoded host which seem currently prevents redefinition from env variables, while all used libraries allow you to do this.
Thanks for your response. I was able to do what I want generating a config.yml on build time (configuring the environment variables in my repository) and then adding --config /nakama/data/config.yml in my docker run configuration like this: