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

عرض الملف

@@ -18,8 +18,6 @@ OG_DB_URI=mysql://root:passwd@localhost:3306/opengist_db
### Docker Compose
```yml
version: "3"
services:
opengist:
image: ghcr.io/thomiceli/opengist:1

عرض الملف

@@ -18,8 +18,6 @@ OG_DB_URI=postgres://postgres:passwd@localhost:5432/opengist_db
### Docker Compose
```yml
version: "3"
services:
opengist:
image: ghcr.io/thomiceli/opengist:1

عرض الملف

@@ -21,8 +21,6 @@ OG_SQLITE_JOURNAL_MODE=WAL
### Docker Compose
```yml
version: "3"
services:
opengist:
image: ghcr.io/thomiceli/opengist:1