diff --git a/compose_frigate.yaml b/compose_frigate.yaml index 7e7a4da..7b6fbc4 100644 --- a/compose_frigate.yaml +++ b/compose_frigate.yaml @@ -5,29 +5,36 @@ services: container_name: frigate image: ghcr.io/blakeblackshear/frigate:stable-tensorrt restart: unless-stopped - shm_size: "2gb" + stop_grace_period: 30s + shm_size: "4gb" gpus: all security_opt: - no-new-privileges:true environment: + TZ: Europe/Zurich NVIDIA_VISIBLE_DEVICES: all NVIDIA_DRIVER_CAPABILITIES: compute,video,utility + LIBVA_DRIVER_NAME: nvidia devices: - /dev/bus/usb:/dev/bus/usb - /dev/dri:/dev/dri + tmpfs: + - /tmp/cache:size=4G volumes: - /etc/localtime:/etc/localtime:ro - /opt/frigate/config:/config - /opt/frigate/media:/media/frigate - - type: tmpfs - target: /tmp/cache - tmpfs: - size: 2000000000 ports: - "5000:5000" - "1935:1935" + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:5000/api/version"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 60s logging: - driver: "json-file" + driver: json-file options: - max-size: "50m" + max-size: "100m" max-file: "5" \ No newline at end of file