mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
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)
This commit is contained in:
parent
8b1bfe306c
commit
b77328a381
2 changed files with 2 additions and 2 deletions
|
|
@ -50,7 +50,7 @@ services:
|
|||
'--quiet',
|
||||
'--tries=1',
|
||||
'--spider',
|
||||
'http://localhost:1900/health',
|
||||
'http://127.0.0.1:1900/health',
|
||||
]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue