-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.secrets.yml
More file actions
41 lines (39 loc) · 1.25 KB
/
Copy pathdocker-compose.secrets.yml
File metadata and controls
41 lines (39 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Docker Compose with enhanced security using Docker secrets
# Usage: docker-compose -f docker-compose.yml -f docker-compose.secrets.yml up -d
version: '3.8'
secrets:
google_client_id:
external: true
name: setliststudio_google_client_id
google_client_secret:
external: true
name: setliststudio_google_client_secret
microsoft_client_id:
external: true
name: setliststudio_microsoft_client_id
microsoft_client_secret:
external: true
name: setliststudio_microsoft_client_secret
facebook_app_id:
external: true
name: setliststudio_facebook_app_id
facebook_app_secret:
external: true
name: setliststudio_facebook_app_secret
services:
setliststudio-web:
secrets:
- google_client_id
- google_client_secret
- microsoft_client_id
- microsoft_client_secret
- facebook_app_id
- facebook_app_secret
environment:
# Remove OAuth secrets from environment variables
# These will be read from mounted secret files instead
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_URLS=http://+:8080
- ConnectionStrings__DefaultConnection=Data Source=/app/data/setliststudio.db
# OAuth secrets are now loaded from Docker secrets files
- USE_DOCKER_SECRETS=true