Files
billing/docker-compose.yml
Ruslan Bakiev 2d96afabec
All checks were successful
Build Docker Image / build (push) Successful in 1m44s
Migrate billing backend from Django to Express + Apollo Server + Prisma
Replace Python/Django/Graphene with TypeScript/Express/Apollo Server.
Same 2 endpoints (team/m2m), same JWT auth, same TigerBeetle integration.
Prisma ORM replaces Django ORM for Account/OperationCode/ServiceAccount.
2026-03-09 09:13:07 +07:00

45 lines
1.1 KiB
YAML

services:
billing:
image: gitea.dsrptlab.com/optovia/billing/billing:latest
container_name: billing
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
container_name: tigerbeetle
privileged: true
command: ["start", "--addresses=0.0.0.0:3000", "--development", "/var/lib/tigerbeetle/0_0.tigerbeetle"]
expose:
- "3000"
volumes:
- tigerbeetle_data:/var/lib/tigerbeetle
restart: unless-stopped
networks:
dokploy-network:
aliases:
- tigerbeetle
volumes:
tigerbeetle_data:
networks:
dokploy-network:
external: true