Let two backend CI runs share a runner host

The job kept the fixed container names and the fixed 5432 that compose.ci.yml
resets for every other job, so a second run could not start. Layering that
file leaves the db on a port Docker assigns, which the suite is told about,
and the project name is now per run so one teardown cannot take another run's
database with it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H7LwYgJfpkbLCTeiAf8U4A
This commit is contained in:
2026-08-16 16:46:25 +02:00
co-authored by Claude Fable 5
parent 75f68655ef
commit b4d5aa6186
2 changed files with 19 additions and 6 deletions
+5 -1
View File
@@ -18,7 +18,11 @@ services:
db:
container_name: !reset null
ports: !reset []
# The one service a job may need from the host: test-backend.yml runs pytest
# on the runner. Host side left to Docker, so concurrent jobs get a port
# each — `docker compose port db 5432` says which.
ports: !override
- "5432"
redis:
container_name: !reset null