Fix Docker: move drizzle-kit to dependencies, fix healthcheck IPv6 issue

This commit is contained in:
Christomatt
2026-01-31 07:21:51 +01:00
parent 99da98f811
commit 7228edb995
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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"]
+1 -1
View File
@@ -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",