-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (47 loc) · 1.44 KB
/
docker-compose.yml
File metadata and controls
50 lines (47 loc) · 1.44 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
version: '3.8'
services:
postgres:
image: postgres:15-alpine
environment:
POSTGRES_DB: openfederation
POSTGRES_USER: openfederation
POSTGRES_PASSWORD: ${DB_PASSWORD:-changeme}
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U openfederation"]
interval: 5s
timeout: 3s
retries: 5
pds:
build: .
ports:
- "${PDS_PORT:-8080}:8080"
environment:
DB_HOST: postgres
DB_PORT: "5432"
DB_NAME: openfederation
DB_USER: openfederation
DB_PASSWORD: ${DB_PASSWORD:-changeme}
AUTH_JWT_SECRET: ${AUTH_JWT_SECRET:?Set AUTH_JWT_SECRET in .env}
KEY_ENCRYPTION_SECRET: ${KEY_ENCRYPTION_SECRET:?Set KEY_ENCRYPTION_SECRET in .env}
PDS_HOSTNAME: ${PDS_HOSTNAME:-localhost}
PDS_SERVICE_URL: ${PDS_SERVICE_URL:-http://localhost:8080}
BLOB_STORAGE: ${BLOB_STORAGE:-local}
BLOB_STORAGE_PATH: /data/blobs
BOOTSTRAP_ADMIN_EMAIL: ${BOOTSTRAP_ADMIN_EMAIL:-admin@localhost}
BOOTSTRAP_ADMIN_HANDLE: ${BOOTSTRAP_ADMIN_HANDLE:-admin}
BOOTSTRAP_ADMIN_PASSWORD: ${BOOTSTRAP_ADMIN_PASSWORD:-AdminPass1234}
volumes:
- blobdata:/data/blobs
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:8080/health"]
interval: 10s
timeout: 3s
retries: 3
volumes:
pgdata:
blobdata: