From b77328a3819ed3124666a9786a06a0ab13849739 Mon Sep 17 00:00:00 2001 From: Johannes Millan Date: Fri, 19 Dec 2025 17:04:32 +0100 Subject: [PATCH] fix(docker): fix supersync container startup issues - Fix Dockerfile.test: use correct path dist/src/index.js (not dist/index.js) since TypeScript compiles with rootDir="." preserving src/ directory - Fix healthcheck: use 127.0.0.1 instead of localhost to avoid IPv6 resolution issues (wget resolves localhost to ::1 but server listens on IPv4) --- docker-compose.yaml | 2 +- packages/super-sync-server/Dockerfile.test | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index b814b88f2..47b6401ad 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -50,7 +50,7 @@ services: '--quiet', '--tries=1', '--spider', - 'http://localhost:1900/health', + 'http://127.0.0.1:1900/health', ] interval: 5s timeout: 5s diff --git a/packages/super-sync-server/Dockerfile.test b/packages/super-sync-server/Dockerfile.test index 706d575ea..e627df9e8 100644 --- a/packages/super-sync-server/Dockerfile.test +++ b/packages/super-sync-server/Dockerfile.test @@ -50,4 +50,4 @@ ENV CORS_ORIGINS=* ENV JWT_SECRET=e2e-test-secret-minimum-32-chars-long-for-security # Push schema to DB and start server -CMD sh -c "npx prisma db push && node dist/index.js" +CMD sh -c "npx prisma db push && node dist/src/index.js"