From 2138a347ac284686dba200cacafdf888fcaf7cfe Mon Sep 17 00:00:00 2001 From: defiQUG Date: Mon, 11 May 2026 21:10:58 -0700 Subject: [PATCH] docs(ops): resolve act_runner template merge notes (network + Postgres) Clarify empty container.network for services DNS and DATABASE_URL hostnames; merge README / YAML / setup doc wording after stash apply. Co-authored-by: Cursor --- config/gitea-act-runner/README.md | 2 +- config/gitea-act-runner/config-5701-standard.yaml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/gitea-act-runner/README.md b/config/gitea-act-runner/README.md index 42309ae1..12861906 100644 --- a/config/gitea-act-runner/README.md +++ b/config/gitea-act-runner/README.md @@ -7,6 +7,6 @@ Deploy with `bash scripts/dev-vm/apply-act-runner-config.sh` from the repo root (LAN). Full procedure: `docs/04-configuration/GITEA_ACT_RUNNER_SETUP.md`. -**Networking:** keep **`container.network` empty** (`""` in YAML). That lets act_runner attach workflow **`services:`** to the same per-job Docker network as the job container. **`network: bridge`** breaks **`postgres`** (and similar) hostnames → Prisma **P1001**. +**Networking:** keep **`container.network` empty** (`""` in YAML). act_runner attaches workflow **`services:`** to the same per-job Docker network as the job container. **`network: bridge`** isolates the job from service containers → Prisma **P1001** even when **`DATABASE_URL`** uses **`postgres`**. **CI env:** in workflows with **`services: postgres:`**, set **`DATABASE_URL`** to **`...@postgres:5432/...`** (service id as host), not **`localhost`**. diff --git a/config/gitea-act-runner/config-5701-standard.yaml b/config/gitea-act-runner/config-5701-standard.yaml index 127e975e..647c0cba 100644 --- a/config/gitea-act-runner/config-5701-standard.yaml +++ b/config/gitea-act-runner/config-5701-standard.yaml @@ -26,7 +26,8 @@ cache: external_server: "" container: - # Same as config-5700-heavy.yaml — keep empty for `services:` support. + # Same as config-5700-heavy.yaml — keep `network` empty so workflow `services:` + # (e.g. postgres) share DNS with the job container (see heavy template comments). network: "" privileged: false options: "--cpus=2 --memory=4g --pids-limit=512"