Skip to content
This repository was archived by the owner on Oct 20, 2024. It is now read-only.

Repository files navigation

Release

How to use the docker-secrets-module on your project

Step 1. Add the JitPack repository to your build file

Add it in your root build.gradle at the end of repositories:

 repositories {
...
maven { url 'https://jitpack.io' }
}
Step 2. Add the dependency
	dependencies {
implementation 'com.frog-development:docker-secrets-module:1.0.0'
}
Step 3. Use the Docker Secrets defined for your service.

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 omittedspring:
security:
user:
name: ${docker-secrets.my_user}password: ${docker-secrets.my_password}

About

Processing Docker Secrets into Spring Environment

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages