- infra: Bugsink 2.6.3 in docker (infra/bugsink, scripts/bugsink-up.sh), database bugsink in Peppa's Postgres, Traefik route bugsink.telecom.quest - packages/bugsink: REST API client + custom-webhook payload parsing - incidents (migration 0011): incident_settings, error_sources, incidents; ingest from webhook POST /api/hooks/bugsink/<secret> and a 2-minute poll in the watchdog - incident policy per project: notify / backlog (default) / start / ask (Telegram buttons) / triage (claude -p with the owner's token, falls back to ask) - daily task cap, environments, ignore pattern; manual "fixed" until PEP-57; REGRESSED returns the task to the backlog - web «Ошибки» section, bot buttons, MCP tools for agents and the PM, help, RULES.md - testkit: mock-bugsink, mock-triage, incidents.test.ts (one test per scenario, plus a live run against the real Bugsink with PEPPA_LIVE_BUGSINK=1) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
32 lines
1.4 KiB
YAML
32 lines
1.4 KiB
YAML
# Bugsink (PEP-58): self-hosted error tracker, Sentry SDK compatible.
|
|
# Its database is `bugsink` in Peppa's Postgres (container peppa-postgres, network peppa_default).
|
|
# Secrets come from Peppa's .env: scripts/bugsink-up.sh runs
|
|
# docker compose --env-file <repo>/.env -f infra/bugsink/docker-compose.yml up -d
|
|
name: peppa-bugsink
|
|
services:
|
|
bugsink:
|
|
image: bugsink/bugsink:2.6.3
|
|
container_name: peppa-bugsink
|
|
restart: unless-stopped
|
|
ports:
|
|
- "127.0.0.1:3180:8000"
|
|
environment:
|
|
SECRET_KEY: ${BUGSINK_SECRET_KEY:?BUGSINK_SECRET_KEY in .env}
|
|
DATABASE_URL: postgresql://bugsink:${BUGSINK_DB_PASSWORD:?BUGSINK_DB_PASSWORD in .env}@peppa-postgres:5432/bugsink
|
|
CREATE_SUPERUSER: ${BUGSINK_ADMIN_EMAIL:-admin@telecom.quest}:${BUGSINK_ADMIN_PASSWORD:?BUGSINK_ADMIN_PASSWORD in .env}
|
|
BASE_URL: ${BUGSINK_PUBLIC_URL:-https://bugsink.telecom.quest}
|
|
# Cloudflare terminates TLS, Traefik forwards plain HTTP.
|
|
BEHIND_HTTPS_PROXY: "true"
|
|
USER_REGISTRATION: "closed"
|
|
PHONEHOME: "false"
|
|
# Alerts go to Peppa on the host (http://host.docker.internal:3100/api/hooks/bugsink/…), a non-global address.
|
|
ALERTS_WEBHOOK_DENY_NON_GLOBAL: "false"
|
|
TIME_ZONE: Europe/Moscow
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
networks: [peppa]
|
|
networks:
|
|
peppa:
|
|
name: peppa_default
|
|
external: true
|