From 8eecfa9541cd6ec898717caf3f4ce435cc3c07cf Mon Sep 17 00:00:00 2001 From: Nikholas Pcenicni <82239765+nikpcenicni@users.noreply.github.com> Date: Sat, 22 Aug 2026 17:20:06 -0400 Subject: [PATCH] Add optional sidecar configurations for OrcaSlicer and Bambu Studio in compose.yaml --- komodo/automate/bambuddy/.env.sample | 8 ++++- komodo/automate/bambuddy/compose.yaml | 48 +++++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 1 deletion(-) diff --git a/komodo/automate/bambuddy/.env.sample b/komodo/automate/bambuddy/.env.sample index 7c6566c..2bd5dc9 100644 --- a/komodo/automate/bambuddy/.env.sample +++ b/komodo/automate/bambuddy/.env.sample @@ -1,4 +1,10 @@ PG_USER=bambuddy PG_PASS=changeme DATA_PATH=/mnt/data -LOGS_PATH=/mnt/logs \ No newline at end of file +LOGS_PATH=/mnt/logs + +# Virtual slicer sidecars (optional, defaults shown) +# SIDECAR_TAG=latest +# ORCA_API_PORT=3003 +# BAMBU_API_PORT=3001 +# MAX_MODEL_UPLOAD_MB=512 \ No newline at end of file diff --git a/komodo/automate/bambuddy/compose.yaml b/komodo/automate/bambuddy/compose.yaml index 1113060..3db2615 100644 --- a/komodo/automate/bambuddy/compose.yaml +++ b/komodo/automate/bambuddy/compose.yaml @@ -28,5 +28,53 @@ services: stop_grace_period: 30s cap_add: - NET_BIND_SERVICE + + # Server-side slicing sidecar (HTTP wrapper around the OrcaSlicer CLI). + # Reachable from bambuddy on the compose network at http://orca-slicer-api:3000 — + # set that as the Slicer API URL in Bambuddy's Settings -> Slicer. + # amd64-only image; platform pin forces emulation on non-x86_64 hosts. + # orca-slicer-api: + # image: ghcr.io/maziggy/orca-slicer-api:${SIDECAR_TAG:-latest} + # container_name: orca-slicer-api + # platform: linux/amd64 + # restart: unless-stopped + # ports: + # - "${ORCA_API_PORT:-3003}:3000" + # volumes: + # - ${DATA_PATH}/slicer/orca:/app/data + # environment: + # NODE_ENV: production + # PORT: "3000" + # MAX_MODEL_UPLOAD_MB: "${MAX_MODEL_UPLOAD_MB:-512}" + # healthcheck: + # test: ["CMD", "curl", "-f", "http://localhost:3000/health"] + # interval: 30s + # timeout: 5s + # start_period: 10s + # retries: 3 + + # Optional second sidecar wrapping the Bambu Studio CLI instead of OrcaSlicer. + # Opt in with: docker compose --profile bambu up -d + bambu-studio-api: + image: ghcr.io/maziggy/bambu-studio-api:${SIDECAR_TAG:-latest} + container_name: bambu-studio-api + platform: linux/amd64 + restart: unless-stopped + ports: + - "${BAMBU_API_PORT:-3001}:3000" + volumes: + - ${DATA_PATH}/slicer/bambu:/app/data + environment: + NODE_ENV: production + PORT: "3000" + MAX_MODEL_UPLOAD_MB: "${MAX_MODEL_UPLOAD_MB:-512}" + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:3000/health"] + interval: 30s + timeout: 5s + start_period: 10s + retries: 3 + profiles: + - bambu volumes: bambuddy_logs: