-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
49 lines (46 loc) · 1.27 KB
/
Copy pathcompose.yaml
File metadata and controls
49 lines (46 loc) · 1.27 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
name: secureledger
services:
postgres:
image: postgres:17-alpine
environment:
POSTGRES_DB: secureledger
POSTGRES_USER: secureledger
POSTGRES_PASSWORD: secureledger
healthcheck:
test: ["CMD-SHELL", "pg_isready -U secureledger -d secureledger"]
interval: 5s
timeout: 5s
retries: 10
start_period: 5s
ports:
- "127.0.0.1:5432:5432"
volumes:
- secureledger_postgres:/var/lib/postgresql/data
- ./deploy/postgres/001_init.sql:/docker-entrypoint-initdb.d/001_init.sql:ro
app:
build:
context: .
environment:
SECURELEDGER_ADDR: :8080
SECURELEDGER_STORE: postgres
SECURELEDGER_DATABASE_URL: postgresql://secureledger:secureledger@postgres:5432/secureledger?sslmode=disable
SECURELEDGER_MAX_TRANSFER_MINOR: "100000000"
SECURELEDGER_RISK_THRESHOLD_MINOR: "1000000"
SECURELEDGER_LOG_LEVEL: info
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD", "/secureledger-healthcheck"]
interval: 5s
timeout: 3s
retries: 10
start_period: 5s
ports:
- "127.0.0.1:8080:8080"
read_only: true
cap_drop: ["ALL"]
security_opt:
- no-new-privileges:true
volumes:
secureledger_postgres: