docker-compose.yml 862 B

12345678910111213141516171819202122232425262728293031
  1. version: "3"
  2. services:
  3. dev:
  4. container_name: frigate-dev
  5. user: vscode
  6. build:
  7. context: .
  8. dockerfile: docker/Dockerfile.dev
  9. devices:
  10. - /dev/bus/usb:/dev/bus/usb
  11. - /dev/dri:/dev/dri # for intel hwaccel, needs to be updated for your hardware
  12. volumes:
  13. - /etc/localtime:/etc/localtime:ro
  14. - .:/opt/frigate:cached
  15. - ./config/config.yml:/config/config.yml:ro
  16. - ./debug:/media/frigate
  17. - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
  18. target: /tmp/cache
  19. tmpfs:
  20. size: 1000000000
  21. ports:
  22. - "1935:1935"
  23. - "5000:5000"
  24. - "5001:5001"
  25. - "8080:8080"
  26. command: /bin/sh -c "sudo /usr/local/nginx/sbin/nginx; while sleep 1000; do :; done"
  27. mqtt:
  28. container_name: mqtt
  29. image: eclipse-mosquitto:1.6
  30. ports:
  31. - "1883:1883"