# Self-hostable stack: the engine + Postgres. `docker compose up --build` gives # a running economy service on :8080 backed by a persistent Postgres. services: postgres: image: postgres:16-alpine environment: POSTGRES_USER: ah POSTGRES_PASSWORD: ahpass POSTGRES_DB: ah ports: - "5432:5432" volumes: - pgdata:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U ah -d ah"] interval: 2s timeout: 3s retries: 20 app: build: . environment: DATABASE_URL: postgres://ah:ahpass@postgres:5432/ah PORT: "8080" # Per-tenant config. Replace with your game's callback URL + secrets. TENANTS: '{}' ports: - "8080:8080" depends_on: postgres: condition: service_healthy volumes: pgdata: