Files

39 lines
1.2 KiB
YAML

services:
# Main Frigate container. Replace volumes/devices with the configuration that
# your Frigate installation needs.
frigate:
image: ghcr.io/blakeblackshear/frigate:stable
container_name: frigate
restart: unless-stopped
ports:
- "5000:5000"
volumes:
- ./frigate-config:/config
- ./frigate-media:/media/frigate
# Sidecar for exactly this Frigate instance. It discovers cameras from the
# Frigate API and exposes MQTT/GUI controls for the detected camera features.
camera-control:
image: frigate-camera-control-bridge:1.0
container_name: frigate-camera-control-bridge
restart: unless-stopped
depends_on:
- frigate
env_file:
- camera-control.env
environment:
FRIGATE_NAME: frigate-main
# Because both containers share the same Compose network, the sidecar can
# reach Frigate by service name.
FRIGATE_URL: http://frigate:5000
# Optional public Frigate GUI URL for stream links shown in the bridge GUI.
FRIGATE_PUBLIC_URL: ""
BASE_TOPIC: frigate_camera_control/frigate-main
ports:
- "5011:5011"
volumes:
- camera-control-state:/var/lib/frigate-camera-control-bridge
volumes:
camera-control-state: