docker-compose.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. # Run as current user to avoid permission issues with mounted volumes
  10. # Override with: PUID=$(id -u) PGID=$(id -g) docker compose up -d
  11. user: "${PUID:-1000}:${PGID:-1000}"
  12. #
  13. # LINUX: Use host mode for printer discovery and camera streaming
  14. network_mode: host
  15. #
  16. # macOS/WINDOWS: Docker Desktop doesn't support host mode.
  17. # Comment out "network_mode: host" above and uncomment "ports:" below.
  18. # Note: Printer discovery won't work - add printers manually by IP.
  19. #ports:
  20. # - "${PORT:-8000}:8000"
  21. volumes:
  22. - bambuddy_data:/app/data
  23. - bambuddy_logs:/app/logs
  24. #
  25. # Share virtual printer certs with native installation
  26. # This ensures the slicer only needs to trust one CA certificate.
  27. - ./virtual_printer:/app/data/virtual_printer
  28. environment:
  29. - TZ=${TZ:-Europe/Berlin}
  30. # Port BamBuddy runs on (default: 8000)
  31. # Usage: PORT=8080 docker compose up -d
  32. - PORT=${PORT:-8000}
  33. restart: unless-stopped
  34. volumes:
  35. bambuddy_data:
  36. bambuddy_logs: