Files
stack/docker-compose.yml
2024-10-11 18:36:29 +02:00

70 lines
2.0 KiB
YAML

---
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.0.19"
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.19"
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.19"
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.19"
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