-
-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathdocker-compose.yml
69 lines (65 loc) · 2.04 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
include:
- .local/docker-compose.yml
services:
gateway:
image: "caddy:2.7.5-alpine"
ports:
- "80:80"
- "443:443"
volumes:
- ".local/gateway/Caddyfile:/etc/caddy/Caddyfile"
ledger:
image: "ghcr.io/formancehq/ledger:v2.1.1"
healthcheck:
test: [ "CMD", "curl", "-f", "http://127.0.0.1:3068/_healthcheck" ]
interval: 10s
timeout: 5s
retries: 5
depends_on:
postgres:
condition: service_healthy
environment:
POSTGRES_URI: "postgresql://formance:formance@postgres:${FORMANCE_POSTGRES_PORT:-5432}/ledger?sslmode=disable"
payments-migrate:
image: "ghcr.io/formancehq/payments:v2.0.23"
command: migrate up
depends_on:
postgres:
condition: service_healthy
environment:
POSTGRES_URI: "postgres://formance:formance@postgres:${FORMANCE_POSTGRES_PORT:-5432}/payments?sslmode=disable"
payments-api:
image: "ghcr.io/formancehq/payments:v2.0.23"
command: api server
healthcheck:
test: [ "CMD", "curl", "-f", "http://127.0.0.1:8080/_live" ]
interval: 10s
timeout: 5s
retries: 5
depends_on:
postgres:
condition: service_healthy
payments-migrate:
condition: service_completed_successfully
environment:
DEBUG: ${DEBUG:-"true"}
POSTGRES_URI: "postgres://formance:formance@postgres:${FORMANCE_POSTGRES_PORT:-5432}/payments?sslmode=disable"
CONFIG_ENCRYPTION_KEY: mysuperencryptionkey
payments-connectors:
image: "ghcr.io/formancehq/payments:v2.0.23"
command: connectors server
healthcheck:
test: [ "CMD", "curl", "-f", "http://127.0.0.1:8080/_live" ]
interval: 10s
timeout: 5s
retries: 5
depends_on:
postgres:
condition: service_healthy
payments-migrate:
condition: service_completed_successfully
environment:
DEBUG: ${DEBUG:-"true"}
POSTGRES_URI: "postgres://formance:formance@postgres:${FORMANCE_POSTGRES_PORT:-5432}/payments?sslmode=disable"
CONFIG_ENCRYPTION_KEY: mysuperencryptionkey