This commit is contained in:
Tour
2025-12-06 19:36:46 +01:00
parent 48965d4c50
commit 20141ad17b
6 changed files with 22 additions and 22 deletions

View File

@@ -61,10 +61,10 @@ RUN mkdir -p /app/data /app/media /app/.wwebjs_cache /app/.wwebjs_auth && \
USER whatsapp
EXPOSE 3000
EXPOSE 3001
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
CMD node -e "require('http').get('http://localhost:3000/health', (r) => { process.exit(r.statusCode === 200 ? 0 : 1); }).on('error', () => process.exit(1));"
CMD node -e "require('http').get('http://localhost:3001/health', (r) => { process.exit(r.statusCode === 200 ? 0 : 1); }).on('error', () => process.exit(1));"
CMD ["node", "server.js"]