forked from formancehq/ledger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (44 loc) · 1.1 KB
/
docker-compose.yml
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
version: '3.8'
volumes:
postgres:
services:
postgres:
image: "postgres:13-alpine"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ledger"]
interval: 10s
timeout: 5s
retries: 5
environment:
POSTGRES_USER: "ledger"
POSTGRES_PASSWORD: "ledger"
POSTGRES_DB: "ledger"
PGDATA: /data/postgres
volumes:
- postgres:/data/postgres
ledger:
image: "ghcr.io/numary/ledger:latest"
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:3068/_info"]
interval: 10s
timeout: 5s
retries: 5
depends_on:
postgres:
condition: service_healthy
ports:
- "3068:3068"
environment:
NUMARY_STORAGE_DRIVER: "postgres"
NUMARY_STORAGE_POSTGRES_CONN_STRING: "postgresql://ledger:ledger@postgres/ledger"
NUMARY_SERVER_HTTP_BIND_ADDRESS: "0.0.0.0:3068"
control:
image: "ghcr.io/numary/ledger:latest"
command: numary ui
depends_on:
ledger:
condition: service_healthy
ports:
- "3078:3078"
environment:
NUMARY_UI_HTTP_BIND_ADDRESS: "0.0.0.0:3078"