fix(docker): openssl in Alpine, binaryTargets for Prisma, IPv4 healthcheck, start_period for migration delay

This commit is contained in:
Experiments DB Dev
2026-04-15 13:43:20 -04:00
parent b03566e658
commit 80fb1c6e27
3 changed files with 15 additions and 9 deletions
+5 -5
View File
@@ -34,16 +34,16 @@ services:
NODE_ENV: production
PORT: 3001
CORS_ORIGIN: "http://localhost:52867"
# Run as non-root
user: "node"
# Non-root user set in Dockerfile; entrypoint runs migrations then starts server
entrypoint: ["/bin/sh", "/app/docker-entrypoint.sh"]
ports:
- "3001:3001"
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:3001/health || exit 1"]
interval: 15s
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:3001/health || exit 1"]
interval: 10s
timeout: 5s
retries: 5
retries: 10
start_period: 40s
frontend:
build: