Files
ccp/deploy/docker-compose.yml
T
adamfandClaude Opus 5.5 e6a93be15c
Test and publish / test (push) Successful in 25s
Test and publish / publish (push) Successful in 3m1s
Gate the dashboard on the site's admin login and add a setup page
Like job-tracker, the tracker forwards the visitor's cookies to the site
backend's /auth/validate-admin instead of asking for an API key. Signed
in, the dashboard shows every device's data. The new /setup page has
instructions for each collector and creates and revokes API keys. The
userscript is served publicly at /tracker.user.js.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-14 21:22:02 +01:00

39 lines
977 B
YAML

# Local development stack. In production, run only the `tracker` service and
# point DATABASE_URL at your external PostgreSQL.
services:
tracker:
image: activity-tracker
build:
context: ..
dockerfile: deploy/Dockerfile
environment:
DATABASE_URL: postgres://tracker:tracker@postgres:5432/tracker?sslmode=disable
TRACKER_TZ: ${TRACKER_TZ:-UTC}
# No main site to borrow a login from here, so the dashboard is open.
AUTH_MODE: dev
DEV_MODE: "true"
ports:
- "8080:8080"
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
postgres:
image: postgres:17
environment:
POSTGRES_USER: tracker
POSTGRES_PASSWORD: tracker
POSTGRES_DB: tracker
ports:
- "5432:5432"
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U tracker"]
interval: 2s
retries: 15
volumes:
pgdata: