48 lines
1.2 KiB
YAML
48 lines
1.2 KiB
YAML
services:
|
|
billing:
|
|
image: gitea.dsrptlab.com/optovia/billing/billing:latest
|
|
restart: unless-stopped
|
|
expose:
|
|
- "8000"
|
|
environment:
|
|
- PORT=8000
|
|
- TB_CLUSTER_ID=0
|
|
- TB_ADDRESS=tigerbeetle:3000
|
|
- BILLING_DATABASE_URL=postgresql://postgres:${BILLING_DB_PASSWORD}@${BILLING_DB_HOST}:5432/postgres
|
|
- LOGTO_JWKS_URL=${LOGTO_JWKS_URL}
|
|
- LOGTO_ISSUER=${LOGTO_ISSUER}
|
|
- LOGTO_BILLING_AUDIENCE=${LOGTO_BILLING_AUDIENCE}
|
|
- SENTRY_DSN=${SENTRY_DSN}
|
|
depends_on:
|
|
- tigerbeetle
|
|
networks:
|
|
dokploy-network:
|
|
aliases:
|
|
- billing
|
|
|
|
tigerbeetle:
|
|
image: ghcr.io/tigerbeetle/tigerbeetle:latest
|
|
privileged: true
|
|
entrypoint: ["/bin/sh", "-ec"]
|
|
command:
|
|
- >-
|
|
TB_FILE=/var/lib/tigerbeetle/0_0.tigerbeetle; if [ ! -f "$$TB_FILE" ];
|
|
then /tigerbeetle format --cluster=0 --replica=0 "$$TB_FILE"; fi; exec
|
|
/tigerbeetle start --addresses=0.0.0.0:3000 --development "$$TB_FILE"
|
|
expose:
|
|
- "3000"
|
|
volumes:
|
|
- tigerbeetle_data:/var/lib/tigerbeetle
|
|
restart: unless-stopped
|
|
networks:
|
|
dokploy-network:
|
|
aliases:
|
|
- tigerbeetle
|
|
|
|
volumes:
|
|
tigerbeetle_data:
|
|
|
|
networks:
|
|
dokploy-network:
|
|
external: true
|