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