services: heatpump: image: nginx:1.29-alpine restart: unless-stopped ports: - "${HEATPUMP_PORT:-8080}:80" volumes: - ./html:/usr/share/nginx/html:ro - ${HEATPUMP_CSV:-./history.csv}:/data/history.csv:ro - ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro - ./nginx/security-headers.conf:/etc/nginx/security-headers.conf:ro - ./nginx/.htpasswd:/etc/nginx/.htpasswd:ro healthcheck: test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1/healthz"] interval: 30s timeout: 5s retries: 3