Files
server-config/homepage/compose.yaml
T

24 lines
592 B
YAML

services:
homepage:
restart: unless-stopped
container_name: home-page
build: .
volumes:
- ./images:/app/images:ro
- ./templates:/app/templates:ro
networks:
- reverse_proxy_default
logging:
driver: "json-file"
options:
max-size: "50m"
max-file: "3"
healthcheck:
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:5000/', timeout=5)"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
networks:
reverse_proxy_default:
external: true