[GithubActions] Fix tests waiting for backend to start inside docker-compose.ci.yml

This commit is contained in:
Aaro Koivukangas
2026-07-04 14:35:16 +03:00
parent 6d4aeced89
commit 76071c9f00
+6 -2
View File
@@ -37,10 +37,12 @@ services:
IMPORTER_DB_API_URL: 'https://api-toska.apps.ocp-prod-0.k8s.it.helsinki.fi/importer'
JAMI_URL: 'http://jami:3003/'
CRYPT_KEY: 'e16730fce263d5270ba8dcf84d068a32556542455e71331880d6c1c5e4db9b4e'
ports:
- 8080:8080
profiles:
- oodikone
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:8080/api/health']
test: ['CMD', 'curl', '-f', 'http://localhost:8080/health'] # In CI/prod the routing happens at a different level, hence no /api/ needed
<<: *healthcheck-defaults
frontend:
@@ -53,6 +55,8 @@ services:
depends_on:
backend:
condition: service_healthy
ports:
- 3000:3000
profiles:
- oodikone
@@ -153,7 +157,7 @@ services:
image: nginx:latest
depends_on:
frontend:
condition: service_healthy
condition: service_started
backend:
condition: service_healthy
ports: