From 7228edb995d85c7f90f70eedd793d08def863b69 Mon Sep 17 00:00:00 2001 From: Christomatt Date: Sat, 31 Jan 2026 07:21:51 +0100 Subject: [PATCH] Fix Docker: move drizzle-kit to dependencies, fix healthcheck IPv6 issue --- docker/Dockerfile | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 8f16ee5..47b567d 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -86,8 +86,9 @@ USER nextjs EXPOSE 3000 # Health check - longer start period to allow migrations to run +# Using 127.0.0.1 instead of localhost to avoid IPv6 issues HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=5 \ - CMD node -e "require('http').get('http://localhost:3000/api/health', (r) => r.statusCode === 200 ? process.exit(0) : process.exit(1))" + CMD node -e "require('http').get('http://127.0.0.1:3000/api/health', (r) => r.statusCode === 200 ? process.exit(0) : process.exit(1))" # Set the entrypoint ENTRYPOINT ["./docker-entrypoint.sh"] diff --git a/package.json b/package.json index b6fcfb4..89c8301 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "@upstash/redis": "^1.34.3", "bcryptjs": "^2.4.3", "crypto-js": "^4.2.0", + "drizzle-kit": "^0.31.8", "drizzle-orm": "^0.44.1", "jose": "^6.0.11", "libsodium-wrappers-sumo": "^0.8.2", @@ -46,7 +47,6 @@ "@types/uuid": "^10.0.0", "dotenv": "^17.2.3", "dotenv-cli": "^11.0.0", - "drizzle-kit": "^0.31.8", "eslint": "^9", "eslint-config-next": "16.1.4", "fast-check": "^4.5.3",