2023-05-11 19:03:34 -04:00
|
|
|
# docker-compose.yaml
|
|
|
|
|
|
|
|
services:
|
|
|
|
frigate:
|
|
|
|
container_name: frigate
|
|
|
|
image: ghcr.io/blakeblackshear/frigate:0.12.0
|
|
|
|
labels:
|
|
|
|
autoheal: 'true'
|
|
|
|
restart: unless-stopped
|
2023-10-29 21:33:14 -04:00
|
|
|
depends_on:
|
|
|
|
- mqtt
|
2023-10-29 21:56:24 -04:00
|
|
|
- wyze-bridge
|
2023-05-11 19:03:34 -04:00
|
|
|
healthcheck:
|
|
|
|
test: ls /media/frigate && curl -s -f http://localhost:5000 -o /dev/null
|
|
|
|
interval: 60s
|
|
|
|
retries: 1
|
|
|
|
start_period: 30s
|
|
|
|
timeout: 30s
|
|
|
|
environment:
|
|
|
|
FRIGATE_GARAGE_RTSP_USERNAME: motion
|
|
|
|
FRIGATE_GARAGE_RTSP_PASSWORD: ${FRIGATE_GARAGE_RTSP_PASSWORD}
|
|
|
|
FRIGATE_FRONT_DOOR_RTSP_USERNAME: motion
|
|
|
|
FRIGATE_FRONT_DOOR_RTSP_PASSWORD: ${FRIGATE_FRONT_DOOR_RTSP_PASSWORD}
|
2023-07-23 16:41:00 -04:00
|
|
|
FRIGATE_DOORBELL_RTSP_USERNAME: admin
|
|
|
|
FRIGATE_DOORBELL_RTSP_PASSWORD: ${FRIGATE_DOORBELL_RTSP_PASSWORD}
|
2023-07-18 16:23:21 -04:00
|
|
|
FRIGATE_DRIVEWAY_RTSP_USERNAME: admin
|
|
|
|
FRIGATE_DRIVEWAY_RTSP_PASSWORD: ${FRIGATE_DRIVEWAY_RTSP_PASSWORD}
|
2023-10-09 19:08:37 -04:00
|
|
|
FRIGATE_BACK_DOOR_RTSP_USERNAME: frigate
|
2023-05-11 19:03:34 -04:00
|
|
|
FRIGATE_BACK_DOOR_RTSP_PASSWORD: ${FRIGATE_BACK_DOOR_RTSP_PASSWORD}
|
|
|
|
FRIGATE_FAMILY_ROOM_RTSP_USERNAME: frigate
|
|
|
|
FRIGATE_FAMILY_ROOM_RTSP_PASSWORD: ${FRIGATE_FAMILY_ROOM_RTSP_PASSWORD}
|
|
|
|
shm_size: '150mb'
|
|
|
|
devices:
|
|
|
|
- /dev/dri:/dev/dri
|
|
|
|
volumes:
|
|
|
|
- type: volume
|
|
|
|
source: config
|
|
|
|
target: /config
|
|
|
|
- type: volume
|
|
|
|
source: media
|
|
|
|
target: /media/frigate
|
|
|
|
- type: tmpfs
|
|
|
|
target: /tmp/cache
|
|
|
|
tmpfs:
|
|
|
|
size: 1000000000
|
|
|
|
- type: bind
|
|
|
|
source: /etc/localtime
|
|
|
|
target: /etc/localtime
|
|
|
|
read_only: true
|
2023-10-29 21:33:14 -04:00
|
|
|
networks:
|
|
|
|
- frigate
|
2023-05-11 19:03:34 -04:00
|
|
|
ports:
|
2023-05-21 19:33:10 -04:00
|
|
|
- 127.0.0.1:10000:5000
|
2023-10-29 21:56:24 -04:00
|
|
|
wyze-bridge:
|
|
|
|
container_name: frigate-wyze-bridge
|
|
|
|
image: mrlt8/wyze-bridge:2.4.0
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
NET_MODE: LAN
|
|
|
|
FILTER_NAMES: Back Yard Cam
|
|
|
|
WYZE_EMAIL: ${WYZE_EMAIL}
|
|
|
|
WYZE_PASSWORD: ${WYZE_PASSWORD}
|
|
|
|
volumes:
|
|
|
|
- type: bind
|
|
|
|
source: /etc/localtime
|
|
|
|
target: /etc/localtime
|
|
|
|
read_only: true
|
|
|
|
networks:
|
|
|
|
- frigate
|
2023-05-20 11:44:46 -04:00
|
|
|
notify:
|
|
|
|
container_name: frigate-notify
|
|
|
|
image: frigate-notify:latest
|
|
|
|
restart: unless-stopped
|
2023-10-29 21:33:14 -04:00
|
|
|
depends_on:
|
|
|
|
- frigate
|
|
|
|
- mqtt
|
2023-05-20 11:44:46 -04:00
|
|
|
environment:
|
|
|
|
REQUESTS_CA_BUNDLE: /etc/ssl/certs/ca-certificates.crt
|
|
|
|
volumes:
|
|
|
|
- type: bind
|
|
|
|
source: /data/certs/homelab_ca.crt
|
|
|
|
target: /usr/local/share/ca-certificates/homelab_ca.crt
|
|
|
|
read_only: true
|
|
|
|
- type: bind
|
|
|
|
source: /etc/localtime
|
|
|
|
target: /etc/localtime
|
|
|
|
read_only: true
|
2023-10-29 21:33:14 -04:00
|
|
|
networks:
|
|
|
|
- frigate
|
2023-05-21 19:33:10 -04:00
|
|
|
webcontrol:
|
|
|
|
container_name: frigate-webcontrol
|
|
|
|
image: frigate-webcontrol:latest
|
|
|
|
labels:
|
|
|
|
autoheal: 'true'
|
|
|
|
restart: unless-stopped
|
2023-10-29 21:33:14 -04:00
|
|
|
depends_on:
|
2024-01-27 16:49:14 -05:00
|
|
|
frigate:
|
|
|
|
condition: service_healthy
|
|
|
|
mqtt:
|
|
|
|
condition: service_started
|
2023-05-21 19:33:10 -04:00
|
|
|
healthcheck:
|
|
|
|
test: curl -s -f http://localhost -o /dev/null
|
|
|
|
interval: 60s
|
|
|
|
retries: 1
|
|
|
|
start_period: 30s
|
|
|
|
timeout: 30s
|
|
|
|
environment:
|
2023-07-11 07:32:12 -04:00
|
|
|
IPGEOLOCATION_API_KEY: ${IPGEOLOCATION_API_KEY}
|
2024-03-24 04:40:36 -04:00
|
|
|
FRIGATE_CONFIG_FILE: /frigate_config/config.yaml
|
2023-05-21 19:33:10 -04:00
|
|
|
volumes:
|
2024-03-24 04:40:36 -04:00
|
|
|
- type: volume
|
|
|
|
source: config
|
|
|
|
target: /frigate_config
|
|
|
|
read_only: true
|
2023-05-21 19:33:10 -04:00
|
|
|
- type: bind
|
|
|
|
source: /etc/localtime
|
|
|
|
target: /etc/localtime
|
|
|
|
read_only: true
|
2023-10-29 21:33:14 -04:00
|
|
|
networks:
|
|
|
|
- frigate
|
2023-05-21 19:33:10 -04:00
|
|
|
ports:
|
|
|
|
- 127.0.0.1:10001:80
|
2024-02-18 03:47:05 -05:00
|
|
|
uptime:
|
|
|
|
container_name: frigate-uptime
|
|
|
|
image: frigate-uptime:latest
|
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
|
|
frigate:
|
|
|
|
condition: service_healthy
|
|
|
|
volumes:
|
|
|
|
- type: bind
|
|
|
|
source: /etc/localtime
|
|
|
|
target: /etc/localtime
|
|
|
|
read_only: true
|
|
|
|
networks:
|
|
|
|
- frigate
|
2023-10-29 21:33:14 -04:00
|
|
|
mqtt:
|
2024-02-12 23:04:37 -05:00
|
|
|
container_name: frigate-mqtt
|
2023-10-29 21:33:14 -04:00
|
|
|
image: eclipse-mosquitto:2.0.18
|
|
|
|
command:
|
|
|
|
- mosquitto
|
|
|
|
- -c
|
|
|
|
- /mosquitto-no-auth.conf
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- type: bind
|
|
|
|
source: /etc/localtime
|
|
|
|
target: /etc/localtime
|
|
|
|
read_only: true
|
|
|
|
networks:
|
|
|
|
- frigate
|
2023-05-11 19:03:34 -04:00
|
|
|
|
2023-10-29 21:33:14 -04:00
|
|
|
networks:
|
|
|
|
frigate:
|
|
|
|
name: frigate
|
2023-05-11 19:03:34 -04:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
config:
|
|
|
|
name: frigate-config
|
|
|
|
external: true
|
|
|
|
media:
|
|
|
|
name: frigate-media
|
|
|
|
external: true
|