fix(docker): Fix module resolution and healthcheck syntax
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

Issues fixed:
1. Module not found: Added missing copy of apps/{api,web}/node_modules
   which contains pnpm symlinks to the root node_modules

2. Healthcheck syntax: Fixed broken quoting from prettier reformatting
   Changed to CMD-SHELL with proper escaping

3. Removed obsolete version: "3.9" from docker-compose.yml

The apps need their own node_modules directories because pnpm uses
symlinks that point from apps/*/node_modules to node_modules/.pnpm/*

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-01 01:37:30 -06:00
parent aa17b9cb3b
commit fb0f6b5b62
3 changed files with 8 additions and 10 deletions

View File

@@ -1,5 +1,3 @@
version: "3.9"
services:
# ======================
# PostgreSQL Database
@@ -328,10 +326,8 @@ services:
healthcheck:
test:
[
"CMD",
"sh",
"-c",
'node -e "require(''http'').get(''http://localhost:${PORT:-3001}/health'', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"',
"CMD-SHELL",
'node -e "require(''http'').get(''http://localhost:${API_PORT:-3001}/health'', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"',
]
interval: 30s
timeout: 10s
@@ -376,10 +372,8 @@ services:
healthcheck:
test:
[
"CMD",
"sh",
"-c",
'node -e "require(''http'').get(''http://localhost:${PORT:-3000}'', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"',
"CMD-SHELL",
'node -e "require(''http'').get(''http://localhost:${WEB_PORT:-3000}'', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})"',
]
interval: 30s
timeout: 10s