docker-compose.yml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # Optional slicer-API sidecar stack for Bambuddy.
  2. #
  3. # Both services are HTTP wrappers around a slicer CLI: the same Node code
  4. # (`maziggy/orca-slicer-api`, `bambuddy/profile-resolver` branch) bundled
  5. # with a different binary in each image. Bambuddy talks to them via the
  6. # URLs configured in Settings -> Slicer.
  7. #
  8. # bambu-studio-api → host port 3001 (BambuStudio CLI)
  9. # orca-slicer-api → host port 3003 (OrcaSlicer CLI)
  10. #
  11. # Bambuddy's virtual-printer feature reserves host ports 3000 and 3002,
  12. # which is why the OrcaSlicer sidecar sits on 3003. Override either port
  13. # in `.env` (see `.env.example`) if you don't run Bambuddy on this host.
  14. #
  15. # Usage:
  16. # cd slicer-api/
  17. # docker compose up -d # starts OrcaSlicer only
  18. # docker compose --profile bambu up -d # starts both
  19. #
  20. # First start pulls pre-built images from GHCR (~110 MB OrcaSlicer,
  21. # ~220 MB BambuStudio). No local build, no git in the BuildKit worker,
  22. # works on QNAP / Synology / Container Station out of the box.
  23. #
  24. # Both images are linux/amd64 only. OrcaSlicer's ARM64 path is on hold
  25. # pending an upstream extraction fix; BambuStudio doesn't publish ARM64
  26. # at all.
  27. services:
  28. orca-slicer-api:
  29. image: ghcr.io/maziggy/orca-slicer-api:${SIDECAR_TAG:-latest}
  30. container_name: orca-slicer-api
  31. restart: unless-stopped
  32. ports:
  33. - "${ORCA_API_PORT:-3003}:3000"
  34. volumes:
  35. - ./data/orca:/app/data
  36. environment:
  37. NODE_ENV: production
  38. PORT: "3000"
  39. # Largest model accepted for a slice, in MB. See .env.example.
  40. MAX_MODEL_UPLOAD_MB: "${MAX_MODEL_UPLOAD_MB:-512}"
  41. healthcheck:
  42. test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
  43. interval: 30s
  44. timeout: 5s
  45. start_period: 10s
  46. retries: 3
  47. bambu-studio-api:
  48. image: ghcr.io/maziggy/bambu-studio-api:${SIDECAR_TAG:-latest}
  49. container_name: bambu-studio-api
  50. restart: unless-stopped
  51. ports:
  52. - "${BAMBU_API_PORT:-3001}:3000"
  53. volumes:
  54. - ./data/bambu:/app/data
  55. environment:
  56. NODE_ENV: production
  57. PORT: "3000"
  58. # Largest model accepted for a slice, in MB. See .env.example.
  59. MAX_MODEL_UPLOAD_MB: "${MAX_MODEL_UPLOAD_MB:-512}"
  60. healthcheck:
  61. test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
  62. interval: 30s
  63. timeout: 5s
  64. start_period: 10s
  65. retries: 3
  66. profiles:
  67. - bambu