Files
analytics/podman/podman-compose.yml
zeekay 04314dabdc Serve every route under /v1
The route tree moves from src/app/api to src/app/v1, and every caller
moves with it: the dashboard's useApi base, the tracker and recorder
collect paths, the Next headers and rewrites, the container middleware,
the compose healthchecks and the Cypress API tests. The /v1/analytics
alias is gone; /v1 is the one prefix. The build-time telemetry post to
an upstream endpoint nothing serves is deleted.

v1-surface.test.ts fails if src/app/api returns or any first-party file
names an /api/ path.

Claude-Session: https://claude.ai/code/session_011i2AG9nwpiKUCVxAdDzYuU
2026-09-29 18:41:04 -07:00

42 lines
1.0 KiB
YAML

version: "3.8"
services:
analytics:
container_name: analytics
image: ghcr.io/hanzoai/analytics:postgresql-latest
ports:
- "127.0.0.1:3000:3000"
environment:
DATABASE_URL: ${DATABASE_URL}
DATABASE_TYPE: ${DATABASE_TYPE}
APP_SECRET: ${APP_SECRET}
depends_on:
db:
condition: service_healthy
init: true
restart: always
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:3000/v1/heartbeat || exit 1"]
interval: 5s
timeout: 5s
retries: 5
db:
container_name: analytics-db
image: docker.io/library/postgres:15-alpine
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- analytics-db-data:/var/lib/postgresql/data:Z
restart: always
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 5
volumes:
analytics-db-data: