I’m running ubuntu and creating a docker container using sudo docker compose.up -d
the second drive is mounted at /data.
when I use the line w/ /data it doesn’t work. when I use the line /home/user… it works fine.
here is the docker compose yaml
version: "3.9"
services:
frigate:
container_name: frigate
network_mode: host
privileged: true # this may not be necessary for all setups
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:stable
shm_size: "64mb" # update for your cameras based on calculation above
devices:
- /dev/bus/usb:/dev/bus/usb # passes the USB Coral, needs to be modified for other versions
- /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware
volumes:
- /etc/localtime:/etc/localtime:ro
- /home/user/docker-compose/frigate/config.yml:/config/config.yml:ro
- /data/frigate:/media/frigate
# - /home/user/docker-compose/frigate/media:/media/frigate
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000```