diff --git a/thinkstation/frigate/docker-compose.yml b/thinkstation/frigate/docker-compose.yml new file mode 100644 index 0000000..b7e5472 --- /dev/null +++ b/thinkstation/frigate/docker-compose.yml @@ -0,0 +1,35 @@ +services: + frigate: + container_name: frigate + image: ghcr.io/blakeblackshear/frigate:stable-tensorrt + privileged: true + shm_size: "1024mb" + restart: always + runtime: nvidia + environment: + - NVIDIA_VISIBLE_DEVICES=all + - NVIDIA_DRIVER_CAPABILITIES=compute,video,utility + - FRIGATE_RTSP_PASSWORD=restreampass + secrets: + - frigate_jwt_secret + deploy: + resources: + reservations: + devices: + - driver: nvidia + count: 1 + capabilities: [gpu, compute, video] + volumes: + - /srv/docker/frigate/config:/config + - /mnt/14TB-HD/frigate/media:/media/frigate + - /etc/localtime:/etc/localtime:ro + ports: + - "5000:5000" + - "8971:8971" + - "8554:8554" + - "8555:8555/tcp" + - "8555:8555/udp" + +secrets: + frigate_jwt_secret: + file: /srv/docker/frigate/config/jwt_secret