-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (43 loc) · 1.16 KB
/
Copy pathdocker-compose.yml
File metadata and controls
46 lines (43 loc) · 1.16 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
services:
reference-impl:
build:
context: .
dockerfile: Dockerfile
image: certifieddata/reference-impl:latest
ports:
- "3000:3000"
environment:
TRAINING_CERT: /app/fixtures/training-cert.json
TRAINING_KEYS: /app/fixtures/keys.json
MODEL_VERSION: credit-v3.2.1
# LEDGER_URL: http://ledger:8080 # uncomment to use the HTTP ledger below
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: ledger
POSTGRES_PASSWORD: ledger
POSTGRES_DB: ledger
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ledger"]
interval: 5s
timeout: 3s
retries: 10
volumes:
- ledger-data:/var/lib/postgresql/data
# Stub for a future production Decision Ledger service.
# Uncomment when wiring up against a real ledger backend:
#
# ledger:
# image: certifieddata/ledger:latest
# environment:
# POSTGRES_URL: postgres://ledger:ledger@postgres:5432/ledger
# depends_on:
# postgres:
# condition: service_healthy
# ports:
# - "8080:8080"
volumes:
ledger-data: