Docker secret for postgres, redis and redis_cache #624
Unanswered
slu-ymca
asked this question in
Getting Help
Replies: 1 comment
-
Update: I managed to get postgres running by removing the password from the respective env file and adding the following environment statement:
Is there any more elegant way to do so? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
according to wiki (page deployment), it's not recommended to store passwords, e.g. for database or redis connection, in an environment variable. I tried to follow the instructions and used Docker secrets. Changing the superuser password and api token works, however the database and redis connection stop working (due to wrong password) once I change the secret using Docker secrets.
Did anybody manage to get this running using Docker secrets? I can see that the respective /run/secrets/ file is mounted in the container.
Is it possible that redis, redis_cache and postgres ignore those files in /run/secrets? I named the secret file exactly the same way as the environment variable.
Thanks in advance!
Cheers
Slu
Beta Was this translation helpful? Give feedback.
All reactions