Docker Compose configuration
Please read Liability Disclaimer and License Agreement CAREFULLY
docker-compose.yml
version: '3.9'
services:
portainer:
container_name: portainer Powerful container management
image: portainer/portainer-ce
restart: always
ports:
- "9000:9000/tcp"
environment:
- TZ=Europe/Oslo
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /opt/portainer:/data
deepstack:
container_name: deepstack
restart: unless-stopped
image: deepquestai/deepstack:latest
ports:
- "5001:5000"
environment:
- VISION-FACE=True
- VISION-DETECTION=False
- VISION-SCENE=False
- API-KEY=
volumes:
- /etc/localtime:/etc/localtime:ro
- /nas-storage/Frigate/Media/Deepstack:/datastore
runtime: nvidia
deepstack_trainer:
container_name: deepstack_trainer
restart: always
image: techblog/deepstack-trainer
privileged: true
environment:
- DEEPSTACK_HOST_ADDRESS=http://10.0.1.2:5001
- DEEPSTACK_API_KEY=
- MIN_CONFIDANCE=0.7
ports:
- "8501:8080"
volumes:
- /nas-storage/Frigate/Media/Deepstack/db:/opt/trainer/db #Database storing the uploaded photos data (Filename, Person name, Date).
- /nas-storage/Frigate/Media/Deepstack/training_img:/opt/trainer/photos/uploads #Phisical path for storing the images
frigate:
container_name: frigate
privileged: true # this may not be necessary for all setups
restart: unless-stopped
image: blakeblackshear/frigate:stable-amd64nvidia
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,utility,video
#(width * height * 1.5 * 9 + 270480)/1048576 = <shm size in mb>
shm_size: "128mb" # update for your cameras based on calculation above
devices:
- /dev/apex_0:/dev/apex_0
- /dev/dri/renderD128:/dev/dri/renderD128
- /dev/vpu_service:/dev/vpu_service
- /dev/dri/card0:/dev/dri/card0
volumes:
- /etc/localtime:/etc/localtime:ro
- ./config/frigate.yml:/config/config.yml:ro
- /nas-storage/Frigate/Media:/media/frigate
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "5000:5000"
- "1935:1935" # RTMP feeds
Comments powered by CComment