Files
camera-jpg/docker-compose.yml
T
2026-08-20 21:49:05 +02:00

21 lines
634 B
YAML

# Portainer-friendly: no build step. Load/push the image first, then paste this stack.
services:
resizer:
image: doorbell-resizer:latest
container_name: doorbell-resizer
ports:
- "8080:80"
environment:
FRIGATE_URL: http://10.0.1.197:5050/api/doorbell/latest.jpg?h=270
TARGET_WIDTH: "480"
JPEG_QUALITY: "40"
FETCH_TIMEOUT: "5"
PREFETCH_HZ: "10"
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1/health')"]
interval: 30s
timeout: 5s
retries: 3
start_period: 15s
restart: unless-stopped