51 lines
1.7 KiB
YAML
51 lines
1.7 KiB
YAML
# Reproducible GNU Taler merchant backend for local Kivitendo integration
|
|
# testing. See README.md in this directory for usage.
|
|
name: taler-merchant
|
|
|
|
services:
|
|
db:
|
|
image: postgres:17
|
|
restart: unless-stopped
|
|
environment:
|
|
POSTGRES_USER: taler-merchant
|
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-taler-merchant}
|
|
POSTGRES_DB: taler-merchant
|
|
volumes:
|
|
- db-data:/var/lib/postgresql/data
|
|
# healthcheck:
|
|
# test: ["CMD-SHELL", "pg_isready -U taler-merchant -d taler-merchant"]
|
|
# interval: 5s
|
|
# timeout: 5s
|
|
# retries: 10
|
|
|
|
merchant:
|
|
build: ./merchant
|
|
image: taler-merchant:local
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- db
|
|
# db:
|
|
# condition: service_healthy
|
|
environment:
|
|
# PostgreSQL connection string for the merchant backend.
|
|
TALER_MERCHANT_DB: postgres://taler-merchant:${POSTGRES_PASSWORD:-taler-merchant}@db/taler-merchant
|
|
# Bearer token accepted by /private/ endpoints until an instance is
|
|
# created with its own token. Must start with "secret-token:".
|
|
TALER_MERCHANT_TOKEN: ${TALER_MERCHANT_TOKEN:-secret-token:kivi-dev-only}
|
|
# Default currency. KUDOS works with the Taler demonstration exchange;
|
|
# use CHF with the Taler-Operations exchange for real payments.
|
|
TALER_MERCHANT_CURRENCY: ${TALER_MERCHANT_CURRENCY:-KUDOS}
|
|
ports:
|
|
# Bind to localhost only: the backend speaks plain HTTP without TLS
|
|
# and must not be exposed to the network directly.
|
|
- "127.0.0.1:9966:9966"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "wget -q -O /dev/null http://127.0.0.1:9966/config"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 10
|
|
start_period: 15s
|
|
|
|
volumes:
|
|
db-data:
|