1
0

Use Docker secrets (#340)

هذا الالتزام موجود في:
Thomas Miceli
2024-09-28 01:31:18 +02:00
ملتزم من قبل GitHub
الأصل 56b4fd45fd
التزام 41dc2e451b
7 ملفات معدلة مع 30 إضافات و10 حذوفات

عرض الملف

@@ -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
```