fixing docker-compose
This commit is contained in:
@@ -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;"]
|
||||
|
||||
Reference in New Issue
Block a user