Repository navigation
Expand file tree
/
Copy pathcompose.yaml
More file actions
61 lines (59 loc) · 1.91 KB
/
Copy pathcompose.yaml
File metadata and controls
61 lines (59 loc) · 1.91 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
60
61
# compose.yaml — a complete single-host deployment.
# See docs/self-hosting.md for every variable and for the OIDC setup.
services:
app:
build: .
image: trust-center:local
restart: unless-stopped
environment:
DATABASE_URL: postgres://trustcenter:${POSTGRES_PASSWORD:?set POSTGRES_PASSWORD}@postgres:5432/trustcenter
BASE_URL: ${BASE_URL:?set BASE_URL, e.g. https://trust.example.com}
LOCALES: ${LOCALES:-de,en}
DEFAULT_LOCALE: ${DEFAULT_LOCALE:-de}
OIDC_ISSUER: ${OIDC_ISSUER:?set OIDC_ISSUER}
OIDC_CLIENT_ID: ${OIDC_CLIENT_ID:?set OIDC_CLIENT_ID}
OIDC_CLIENT_SECRET: ${OIDC_CLIENT_SECRET:?set OIDC_CLIENT_SECRET}
OIDC_ADMIN_GROUP: ${OIDC_ADMIN_GROUP:?set OIDC_ADMIN_GROUP}
OIDC_APPROVER_GROUP: ${OIDC_APPROVER_GROUP:-}
MAX_UPLOAD_MB: ${MAX_UPLOAD_MB:-25}
ports:
- host_ip: 127.0.0.1
target: 3000
published: 3000
protocol: tcp
name: HTTP
app_protocol: http
volumes:
- type: volume
source: storage
target: /data/storage
volume:
nocopy: true
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres:18-alpine
restart: unless-stopped
environment:
POSTGRES_USER: trustcenter
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?set POSTGRES_PASSWORD}
POSTGRES_DB: trustcenter
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U trustcenter']
interval: 5s
timeout: 3s
retries: 20
volumes:
- type: volume
source: pgdata
# PG18's PGDATA is /var/lib/postgresql/18/docker, so a volume mounted at
# the legacy /var/lib/postgresql/data is never written to and the database
# lives on the container layer — silently lost on every recreate.
target: /var/lib/postgresql
volume:
labels:
database: ~
volumes:
storage:
pgdata: