From 75fed90b71831946a969da2f60274b7415d998d9 Mon Sep 17 00:00:00 2001 From: tajniak81 <13187254+tajniak81@users.noreply.github.com> Date: Tue, 3 Nov 2026 11:30:21 +0100 Subject: [PATCH] Smoke-test the compose stack over its own network in CI On Gitea the job runs in a container that drives the host's Docker, so the stack's published ports are not on the job's localhost. The checks now run from a curl container on the docwell_default network, and the stack is taken down even when a check fails. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ac63da9..0402e92 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -133,6 +133,12 @@ jobs: run: | cp .env.example .env docker compose up --build -d --wait - curl -fsS http://localhost:8080/readyz - curl -fsS http://localhost:3000/ | grep -q '
' - docker compose down -v + # The job may run in a container beside the stack rather than on + # the Docker host, so the checks go over the compose network. + curl="docker run --rm --network docwell_default curlimages/curl:8.11.1 -fsS" + $curl http://server:8080/readyz + $curl http://web:3000/ | grep -q '
' + - name: Stop the compose stack + if: always() + working-directory: Docker + run: docker compose down -v