docker-compose.yml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. healthcheck:
  40. test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
  41. interval: 30s
  42. timeout: 5s
  43. start_period: 10s
  44. retries: 3
  45. bambu-studio-api:
  46. image: ghcr.io/maziggy/bambu-studio-api:${SIDECAR_TAG:-latest}
  47. container_name: bambu-studio-api
  48. restart: unless-stopped
  49. ports:
  50. - "${BAMBU_API_PORT:-3001}:3000"
  51. volumes:
  52. - ./data/bambu:/app/data
  53. environment:
  54. NODE_ENV: production
  55. PORT: "3000"
  56. healthcheck:
  57. test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
  58. interval: 30s
  59. timeout: 5s
  60. start_period: 10s
  61. retries: 3
  62. profiles:
  63. - bambu