docker-compose.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. services:
  2. bambuddy:
  3. image: ghcr.io/maziggy/bambuddy:latest
  4. build: .
  5. # Usage:
  6. # docker compose up -d → pulls pre-built image from ghcr.io
  7. # docker compose up -d --build → builds locally from source
  8. container_name: bambuddy
  9. #
  10. # LINUX: Use host mode for printer discovery and camera streaming
  11. network_mode: host
  12. #
  13. # macOS/WINDOWS: Docker Desktop doesn't support host mode.
  14. # Comment out "network_mode: host" above and uncomment "ports:" below.
  15. # Note: Printer discovery won't work - add printers manually by IP.
  16. #ports:
  17. # - "${PORT:-8000}:8000"
  18. volumes:
  19. - bambuddy_data:/app/data
  20. - bambuddy_logs:/app/logs
  21. #
  22. # Share virtual printer certs with native installation
  23. # This ensures the slicer only needs to trust one CA certificate.
  24. - ./virtual_printer:/app/data/virtual_printer
  25. environment:
  26. - TZ=Europe/Berlin
  27. # Port BamBuddy runs on (default: 8000)
  28. # Usage: PORT=8080 docker compose up -d
  29. - PORT=${PORT:-8000}
  30. restart: unless-stopped
  31. volumes:
  32. bambuddy_data:
  33. bambuddy_logs: