Add it in your root build.gradle
at the end of repositories:
repositories {
...
maven { url 'https://jitpack.io' }
}
dependencies {
implementation 'com.frog-development:docker-secrets-module:1.0.0'
}
For each secret file found on the secrets directory, a property will be constructed as docker-secrets.{file-name}
.
Here, for example, we have 2 secrets my_user
and my_password
, leading to this configuration:
docker-secrets:
path: /run/secrets # by default, can be omitted
spring:
security:
user:
name: ${docker-secrets.my_user}
password: ${docker-secrets.my_password}