Add health proxy service and Nginx configuration for health checks

This commit is contained in:
MayaChat
2025-11-24 12:26:37 -05:00
parent aa1a38b6fb
commit af2658bfce
4 changed files with 145 additions and 10 deletions

View File

@@ -12,6 +12,23 @@ services:
- ./logos:/usr/share/nginx/html/logos:ro
- ./js:/usr/share/nginx/html/js:ro
- ./README.md:/usr/share/nginx/html/README.md:ro
- ./nginx.conf:/etc/nginx/nginx.conf:ro
restart: unless-stopped
logging:
driver: json-file
options:
max-size: "5m"
max-file: "2"
health-proxy:
image: python:3.10-slim
container_name: services-homepage-health-proxy
working_dir: /app
volumes:
- ./backend/health-proxy.py:/app/health-proxy.py:ro
environment:
- HEALTH_TOKEN=
command: ["sh", "-c", "pip install flask requests && python health-proxy.py"]
restart: unless-stopped
logging:
driver: json-file