-
When I run docker compose up on my project, it says that Here is the env file:
here is the compose file:
docker file:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
My guess as to what going on is that your You can just URL-encode your password, but what we do for simplicity is just put the whole database URL (with encoded password) in a secret. That way it can be changed without modifying the deployment, and it's easier to get it later if you need to connect manually. |
Beta Was this translation helpful? Give feedback.
Okay, looking closer it's not likely an issue with URL-encoding.
I'm still not sure exactly what's going wrong, but I can tell you your
.env
file is the wrong format. It's not a shell script, you don't needexport
before each variable. It's just a list of key-value pairs: https://docs.docker.com/reference/compose-file/services/#env_file-formatHowever, I think that would just give you a "wrong password" error if it fails to parse the
.env
file, becausePOSTGRES_PASSWORD
would not be set.My current best guess has to do with how you're actually passing
DATABASE_URL
to the service:There's no in…