-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
59 lines (52 loc) · 1.6 KB
/
Copy pathdocker-compose.prod.yml
File metadata and controls
59 lines (52 loc) · 1.6 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
services:
db:
image: postgres:17
restart: unless-stopped
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
volumes:
- crossy_road_data:/var/lib/postgresql/data
backend:
image: ghcr.io/${GITHUB_REPOSITORY}-backend:latest
restart: unless-stopped
depends_on:
- db
environment:
ASPNETCORE_ENVIRONMENT: Production
ASPNETCORE_URLS: http://+:8080
Database__Host: db
Database__Port: 5432
Database__Username: ${DB_USER}
Database__Password: ${DB_PASSWORD}
Database__Database: ${DB_NAME}
Domain: ${BACKEND_DOMAIN}
BoschOAuth__ClientId: ${BOSCH_CLIENT_ID}
BoschOAuth__ClientSecret: ${BOSCH_CLIENT_SECRET}
BoschOAuth__TenantId: ${BOSCH_TENANT_ID}
BoschOAuth__MetadataAddress: ${BOSCH_METADATA_ADDRESS}
BoschOAuth__Scopes: ${BOSCH_SCOPES:-profile,openid,email}
MicrosoftOAuth__ClientId: ${MS_CLIENT_ID}
MicrosoftOAuth__ClientSecret: ${MS_CLIENT_SECRET}
MicrosoftOAuth__TenantId: ${MS_TENANT_ID}
MicrosoftOAuth__MetadataAddress: ${MS_METADATA_ADDRESS}
MicrosoftOAuth__Scopes: ${MS_SCOPES:-profile,openid}
ports:
- "8080:8080"
frontend:
image: ghcr.io/${GITHUB_REPOSITORY}-frontend:latest
restart: unless-stopped
depends_on:
- backend
environment:
PUBLIC_API_URL: ${PUBLIC_API_URL}
ORIGIN: ${PUBLIC_ORIGIN}
PROTOCOL_HEADER: x-forwarded-proto
HOST_HEADER: x-forwarded-host
PORT: 3000
HOST: 0.0.0.0
ports:
- "3000:3000"
volumes:
crossy_road_data: