Add health proxy service and Nginx configuration for health checks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user