Using secrets file? #1867
-
Shlink versionv3.6.3 PHP versionlatest How do you serve ShlinkRoadRunner Docker image Database engineMariaDB Database version10.8.8 SummaryI have a running setup of shlink, but I want to change my compose file to using secrets files, so I tried to set them in the compose:
But when I start everything up it says that it's trying to access the database without a password and fails, it's like the password isn't being read. The same method have worked for other compose projects, so what's failing here? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Try this change: - DB_PASSWORD_FILE: /run/secrets/DB_PASSWORD
+ DB_PASSWORD: /run/secrets/DB_PASSWORD |
Beta Was this translation helpful? Give feedback.
-
As of Shlink 4.0.0, which was released yesterday, this is now supported. See https://shlink.io/documentation/environment-variables/#secret-env-vars for details. |
Beta Was this translation helpful? Give feedback.
As of Shlink 4.0.0, which was released yesterday, this is now supported.
See https://shlink.io/documentation/environment-variables/#secret-env-vars for details.