Use Docker secrets (#340)

This commit is contained in:
Thomas Miceli
2024-09-28 01:31:18 +02:00
committed by GitHub
parent 56b4fd45fd
commit 41dc2e451b
7 changed files with 30 additions and 10 deletions

View File

@ -46,3 +46,27 @@ Usage via command line :
```shell
OG_LOG_LEVEL=info ./opengist
```
### Using Docker Compose secrets
You can use Docker Compose secrets to not expose sensitive information in your compose file, using a `.env` file.
```dotenv
# file secrets.env
OG_GITLAB_CLIENT_KEY=your_gitlab_client_key
OG_GITLAB_SECRET=your_gitlab_secret_key
```
And then use it in your compose file :
```yml
services:
opengist:
# ...
secrets:
- opengist_secrets
secrets:
opengist_secrets:
file: ./secrets.env
```