fixing docker-compose

This commit is contained in:
stefan
2025-09-12 14:58:49 +02:00
parent 3ed5a9cece
commit e7360b4f8e
6 changed files with 103 additions and 158 deletions
+2 -2
View File
@@ -97,11 +97,11 @@ RUN echo '{"status":"ok","service":"web-app"}' > /usr/share/nginx/html/health
USER nginx-user
# Expose port
EXPOSE 3000
EXPOSE 4000
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl --fail http://localhost:3000/health || exit 1
CMD curl --fail http://localhost:4000/health || exit 1
# Start nginx
CMD ["nginx", "-g", "daemon off;"]