mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
23 lines
578 B
YAML
23 lines
578 B
YAML
---
|
|
volumes:
|
|
postgres_data:
|
|
services:
|
|
postgres:
|
|
platform: linux/x86_64
|
|
image: "postgres:15-alpine"
|
|
restart: always
|
|
healthcheck:
|
|
test: [ "CMD-SHELL", "pg_isready -U ledger" ]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
ports:
|
|
- "${FORMANCE_POSTGRES_PORT:-5432}:5432"
|
|
environment:
|
|
POSTGRES_USER: "formance"
|
|
POSTGRES_PASSWORD: "formance"
|
|
POSTGRES_MULTIPLE_DATABASES: "ledger,payments"
|
|
PGDATA: "/data/postgres"
|
|
volumes:
|
|
- postgres_data:/data/postgres
|
|
- ./postgres:/docker-entrypoint-initdb.d |