# Example: drop into the same Docker network as your existing Gitea stack. # Adjust GITEA_DB_HOST, network name, and the reverse-proxy section to match # your TrueNAS setup. services: heatmap: build: . image: gitea-heatmap-sidecar:local container_name: gitea-heatmap restart: unless-stopped environment: # Read-only Postgres user (see db/setup.sql). DATABASE_URL: "postgres://heatmap_ro:CHANGE_ME@gitea-db:5432/gitea?sslmode=disable" # Comma-separated lowercase usernames whose heatmap may be served. ALLOWED_USERS: "didericis" # CORS: must match the origin Gitea is served from. ALLOWED_ORIGIN: "https://gitea.dideric.is" # Optional: which Gitea action.op_type values count as a "contribution". # Default 5,9,18 = commit push, tag push, mirror sync push. # OP_TYPES: "5,9,11,18,24" LISTEN: ":8080" networks: - gitea healthcheck: test: ["CMD", "/heatmap", "-healthcheck"] interval: 30s timeout: 5s retries: 3 start_period: 10s networks: gitea: # external: true # uncomment if your Gitea network already exists name: gitea-net