claude/heroku-clone-mvp-plan-NREhc #1

Merged
sander merged 42 commits from claude/heroku-clone-mvp-plan-NREhc into main 2026-03-29 07:24:40 +00:00
2 changed files with 26 additions and 0 deletions
Showing only changes of commit 4ef77bf255 - Show all commits

View file

@ -15,6 +15,9 @@ POSTGRES_PASSWORD=changeme
# Forgejo (optional — only needed if you add the forgejo service to docker-compose.yml). # Forgejo (optional — only needed if you add the forgejo service to docker-compose.yml).
FORGEJO_DB_PASSWORD=changeme FORGEJO_DB_PASSWORD=changeme
FORGEJO_DOMAIN=git.yourdomain.com FORGEJO_DOMAIN=git.yourdomain.com
# Actions runner registration token — obtain from Forgejo:
# Site Administration → Actions → Runners → Create new runner
FORGEJO_RUNNER_TOKEN=
# ── Backup (infra/backup.sh) ────────────────────────────────────────────────── # ── Backup (infra/backup.sh) ──────────────────────────────────────────────────
# Local directory to store backup archives. # Local directory to store backup archives.

View file

@ -93,6 +93,8 @@ services:
FORGEJO__server__SSH_DOMAIN: ${FORGEJO_DOMAIN} FORGEJO__server__SSH_DOMAIN: ${FORGEJO_DOMAIN}
# Skip the first-run wizard — everything is configured via env vars above. # Skip the first-run wizard — everything is configured via env vars above.
FORGEJO__security__INSTALL_LOCK: "true" FORGEJO__security__INSTALL_LOCK: "true"
# Enable Actions.
FORGEJO__actions__ENABLED: "true"
volumes: volumes:
- forgejo-data:/data - forgejo-data:/data
depends_on: depends_on:
@ -100,6 +102,26 @@ services:
networks: networks:
- hiy-net - hiy-net
# ── Forgejo Actions runner ─────────────────────────────────────────────────
# Obtain FORGEJO_RUNNER_TOKEN from Forgejo:
# Site Administration → Actions → Runners → Create new runner
act-runner:
image: code.forgejo.org/forgejo/act_runner:latest
restart: unless-stopped
environment:
FORGEJO_INSTANCE_URL: https://${FORGEJO_DOMAIN}
FORGEJO_RUNNER_REGISTRATION_TOKEN: ${FORGEJO_RUNNER_TOKEN}
FORGEJO_RUNNER_NAME: hiy-runner
# Give the runner access to Podman so CI jobs can build/run containers.
DOCKER_HOST: tcp://podman-proxy:2375
volumes:
- act-runner-data:/data
depends_on:
- forgejo
- podman-proxy
networks:
- hiy-net
# ── Reverse proxy ───────────────────────────────────────────────────────── # ── Reverse proxy ─────────────────────────────────────────────────────────
caddy: caddy:
image: docker.io/library/caddy:2-alpine image: docker.io/library/caddy:2-alpine
@ -170,6 +192,7 @@ networks:
volumes: volumes:
hiy-data: hiy-data:
forgejo-data: forgejo-data:
act-runner-data:
caddy-data: caddy-data:
caddy-config: caddy-config:
hiy-pg-data: hiy-pg-data: