frigate/conf/docker-compose.yaml

129 lines
3.3 KiB
YAML
Raw Normal View History

2023-05-11 18:03:34 -05:00
# docker-compose.yaml
services:
frigate:
container_name: frigate
image: ghcr.io/blakeblackshear/frigate:0.12.0
labels:
autoheal: 'true'
restart: unless-stopped
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_MQTT_USERNAME: frigate
2023-05-20 10:44:46 -05:00
FRIGATE_MQTT_PASSWORD: ${MQTT_PASSWORD}
2023-05-11 18:03:34 -05:00
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 15:41:00 -05:00
FRIGATE_DOORBELL_RTSP_USERNAME: admin
FRIGATE_DOORBELL_RTSP_PASSWORD: ${FRIGATE_DOORBELL_RTSP_PASSWORD}
2023-07-18 15:23:21 -05:00
FRIGATE_DRIVEWAY_RTSP_USERNAME: admin
FRIGATE_DRIVEWAY_RTSP_PASSWORD: ${FRIGATE_DRIVEWAY_RTSP_PASSWORD}
2023-05-11 18:03:34 -05:00
FRIGATE_BACK_DOOR_RTSP_USERNAME: motion
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
# networks:
# - frigate
ports:
2023-05-21 18:33:10 -05:00
- 127.0.0.1:10000:5000
extra_hosts:
- mqtt:192.168.0.6
2023-05-20 10:44:46 -05:00
notify:
container_name: frigate-notify
image: frigate-notify:latest
restart: unless-stopped
environment:
MQTT_USERNAME: frigate
MQTT_PASSWORD: ${MQTT_PASSWORD}
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-05-21 18:33:10 -05:00
extra_hosts:
- mqtt:192.168.0.6
webcontrol:
container_name: frigate-webcontrol
image: frigate-webcontrol:latest
labels:
autoheal: 'true'
restart: unless-stopped
healthcheck:
test: curl -s -f http://localhost -o /dev/null
interval: 60s
retries: 1
start_period: 30s
timeout: 30s
environment:
MQTT_USERNAME: frigate
MQTT_PASSWORD: ${MQTT_PASSWORD}
2023-07-11 06:32:12 -05:00
IPGEOLOCATION_API_KEY: ${IPGEOLOCATION_API_KEY}
2023-05-21 18:33:10 -05:00
volumes:
- type: bind
source: /etc/localtime
target: /etc/localtime
read_only: true
ports:
- 127.0.0.1:10001:80
extra_hosts:
- mqtt:192.168.0.6
2023-05-11 18:03:34 -05:00
# mqtt:
# container_name: mqtt
# image: eclipse-mosquitto:latest
# command:
# - mosquitto
# - -c
# - /mosquitto-no-auth.conf
# restart: unless-stopped
# volumes:
# - type: bind
# source: /etc/localtime
# target: /etc/localtime
# read_only: true
# networks:
# - frigate
# ports:
# - 1883:1883
# - 9001:9001
#networks:
# frigate:
# name: frigate
volumes:
config:
name: frigate-config
external: true
media:
name: frigate-media
external: true