-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 1.23 KB
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (36 loc) · 1.23 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
services:
shelf:
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080"
volumes:
- docs-data:/data/docs
- config-data:/data/config:ro
environment:
# PostgreSQL is required (products, users, settings, access log)
- Shelf__Database__ConnectionString=${SHELF_DB_CONNECTION:-Host=postgres;Database=shelf;Username=postgres;Password=postgres}
# modgud federation for the admin login
- Shelf__Modgud__Issuer=${SHELF_MODGUD_ISSUER:-https://auth.cocoar.dev}
- Shelf__Modgud__Audience=${SHELF_MODGUD_AUDIENCE:-shelf}
- Shelf__Modgud__WebClientId=${SHELF_MODGUD_CLIENT_ID:-shelf-web}
- Shelf__Modgud__WebClientSecret=${SHELF_MODGUD_CLIENT_SECRET:-}
# Bootstrap master API key for CI/CD (per-product + UI-managed keys exist alongside)
- Shelf__ApiKey=${SHELF_API_KEY:-}
- Shelf__AccessLog__Enabled=${SHELF_ACCESS_LOG:-true}
depends_on:
- postgres
restart: unless-stopped
postgres:
image: postgres:17
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-postgres}
- POSTGRES_DB=shelf
volumes:
- pg-data:/var/lib/postgresql/data
restart: unless-stopped
volumes:
docs-data:
config-data:
pg-data: