39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
version: '3.8'
|
|
services:
|
|
services-homepage:
|
|
image: nginx:alpine
|
|
container_name: services-homepage
|
|
ports:
|
|
- "8088:80"
|
|
volumes:
|
|
- ./index.html:/usr/share/nginx/html/index.html:ro
|
|
- ./services.xml:/usr/share/nginx/html/services.xml:ro
|
|
- ./styles.css:/usr/share/nginx/html/styles.css:ro
|
|
- ./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
|
|
- ./services.xml:/usr/share/nginx/html/services.xml:ro
|
|
environment:
|
|
- HEALTH_TOKEN=
|
|
command: ["sh", "-c", "pip install flask requests && python health-proxy.py"]
|
|
restart: unless-stopped
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "5m"
|
|
max-file: "2"
|