docker-compose.yml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. # Updating: `docker compose pull` skips profile-gated services, so a bare
  21. # pull silently leaves bambu-studio-api on its old image (and restart:
  22. # unless-stopped keeps it serving). Use `docker compose --profile bambu pull`,
  23. # or name the service: `docker compose pull bambu-studio-api`.
  24. #
  25. # First start pulls pre-built images from GHCR (~110 MB OrcaSlicer,
  26. # ~220 MB BambuStudio). No local build, no git in the BuildKit worker,
  27. # works on QNAP / Synology / Container Station out of the box.
  28. #
  29. # Both images are linux/amd64 only. OrcaSlicer's ARM64 path is on hold
  30. # pending an upstream extraction fix; BambuStudio doesn't publish ARM64
  31. # at all.
  32. services:
  33. orca-slicer-api:
  34. image: ghcr.io/maziggy/orca-slicer-api:${SIDECAR_TAG:-latest}
  35. container_name: orca-slicer-api
  36. restart: unless-stopped
  37. ports:
  38. - "${ORCA_API_PORT:-3003}:3000"
  39. volumes:
  40. - ./data/orca:/app/data
  41. environment:
  42. NODE_ENV: production
  43. PORT: "3000"
  44. # Largest model accepted for a slice, in MB. See .env.example.
  45. MAX_MODEL_UPLOAD_MB: "${MAX_MODEL_UPLOAD_MB:-512}"
  46. healthcheck:
  47. test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
  48. interval: 30s
  49. timeout: 5s
  50. start_period: 10s
  51. retries: 3
  52. bambu-studio-api:
  53. image: ghcr.io/maziggy/bambu-studio-api:${SIDECAR_TAG:-latest}
  54. container_name: bambu-studio-api
  55. restart: unless-stopped
  56. ports:
  57. - "${BAMBU_API_PORT:-3001}:3000"
  58. volumes:
  59. - ./data/bambu:/app/data
  60. environment:
  61. NODE_ENV: production
  62. PORT: "3000"
  63. # Largest model accepted for a slice, in MB. See .env.example.
  64. MAX_MODEL_UPLOAD_MB: "${MAX_MODEL_UPLOAD_MB:-512}"
  65. healthcheck:
  66. test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
  67. interval: 30s
  68. timeout: 5s
  69. start_period: 10s
  70. retries: 3
  71. profiles:
  72. - bambu