peppa/infra/docker-compose.yml
Асель 616ce28c70 infra: one compose project peppa (postgres, bugsink, act-runner) — one group in OrbStack
The runner and Bugsink ran from compose files in old worktrees (projects peppa-ci, peppa-bugsink).
Container names and the runner's registration volume are kept. scripts/infra-up.sh, pnpm infra:up.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 02:10:53 +05:00

74 lines
3.0 KiB
YAML

# Peppa's docker services in one compose project `peppa` (one group in OrbStack):
# postgres — Bugsink's database (Peppa itself is on SQLite since PEP-36)
# bugsink — error tracker of the factory's projects (PEP-58), 127.0.0.1:3180
# act-runner — Gitea Actions runner of Peppa's projects, label `peppa-trusted` (PEP-57)
# Gitea, Traefik and the projects' deployments (`<slug>-<env>`) are not part of it.
# Secrets come from Peppa's .env: scripts/infra-up.sh [service…]
name: peppa
services:
postgres:
image: postgres:17-alpine
container_name: peppa-postgres
restart: unless-stopped
environment:
POSTGRES_USER: peppa
POSTGRES_PASSWORD: peppa
POSTGRES_DB: peppa
ports:
- "127.0.0.1:5433:5432"
volumes:
- peppa-pg:/var/lib/postgresql/data
bugsink:
image: bugsink/bugsink:2.6.3
container_name: peppa-bugsink
restart: unless-stopped
depends_on: [postgres]
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"
# Jobs run in containers with the host's docker.sock (image builds, deploys), so the runner is
# registered ONLY on Peppa's project repos: on peppa-bot (its repos) and one per repo of another
# owner (`peppa ci connect`). Never an instance-wide registration.
# scripts/ci-runner-register.sh peppa-bot — registration on peppa-bot's repos
act-runner:
image: gitea/act_runner:0.2.11
container_name: peppa-act-runner
restart: unless-stopped
entrypoint: ["/sbin/tini", "--", "/peppa/supervise.sh"]
environment:
# Gitea is on Traefik's docker network: the runner reaches it directly, not via Cloudflare.
GITEA_INSTANCE_URL: http://gitea:3000
volumes:
- ./act-runner/config.yaml:/etc/act_runner/config.yaml:ro
- ./act-runner/supervise.sh:/peppa/supervise.sh:ro
- ./act-runner/register.sh:/usr/local/bin/peppa-runner-register:ro
- peppa-act-runner:/data
- /var/run/docker.sock:/var/run/docker.sock
networks:
- traefik_default
volumes:
peppa-pg:
# Registration (.runner) of the runner from the former `peppa-ci` project: kept as is.
peppa-act-runner:
name: peppa-ci_peppa-act-runner
networks:
traefik_default:
external: true