diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index a801f984..9ca994d4 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -17,8 +17,11 @@ jobs: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: resolutionflow_test - ports: - - 5432:5432 + # No host port mapping. Tests connect to `postgres:5432` (the service + # container's docker-network DNS name), not `localhost:5432`. With + # multiple Gitea runners on the same homelab box, host-port mapping + # would race — two backend/e2e jobs both binding 0.0.0.0:5432 → the + # second fails with "port is already allocated". options: >- --health-cmd pg_isready --health-interval 10s @@ -136,8 +139,11 @@ jobs: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: resolutionflow_test - ports: - - 5432:5432 + # No host port mapping. Tests connect to `postgres:5432` (the service + # container's docker-network DNS name), not `localhost:5432`. With + # multiple Gitea runners on the same homelab box, host-port mapping + # would race — two backend/e2e jobs both binding 0.0.0.0:5432 → the + # second fails with "port is already allocated". options: >- --health-cmd pg_isready --health-interval 10s