Smoke-test the compose stack over its own network in CI
CI / go (Server) (push) Successful in 13m3s
CI / go (Web-App) (push) Successful in 10m9s
CI / frontend (push) Successful in 10m57s
CI / desktop (ubuntu-latest) (push) Successful in 45m11s
CI / mobile (push) Failing after 38s
CI / docker (push) Successful in 4m54s
CI / desktop (macos-latest) (push) Canceled after 0s
CI / desktop (windows-latest) (push) Canceled after 0s

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 <noreply@anthropic.com>
This commit is contained in:
tajniak81andClaude Opus 5.5 committed 2026-11-03 11:30:21 +01:00
1 parent 6d7fc7043e
commit 75fed90b71
1 file changed
+9 -3
+9 -3
View File
@@ -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 '<div id="app">'
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 '<div id="app">'
- name: Stop the compose stack
if: always()
working-directory: Docker
run: docker compose down -v