-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (32 loc) · 831 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (32 loc) · 831 Bytes
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
services:
db:
image: postgres:16
environment:
POSTGRES_DB: financescr
POSTGRES_USER: financescr
POSTGRES_PASSWORD: financescr
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U financescr -d financescr"]
interval: 2s
timeout: 3s
retries: 20
api:
build: .
environment:
DATABASE_URL: postgresql+psycopg://financescr:financescr@db:5432/financescr
VERSION_STAMP: financescr@0.1.0
DATA_ROOT: /data
FINCRIME_POLICY_PATH: /data/fincrime/v1/policy.json
CREDIT_POLICY_PATH: /data/credit/v1/policy.json
volumes:
- ${FINANCESCR_DATA_DIR:-/Users/solua1/financescr_data}:/data:ro
ports:
- "8000:8000"
depends_on:
- db
volumes:
pgdata: