Add optional sidecar configurations for OrcaSlicer and Bambu Studio in compose.yaml
This commit is contained in:
@@ -1,4 +1,10 @@
|
|||||||
PG_USER=bambuddy
|
PG_USER=bambuddy
|
||||||
PG_PASS=changeme
|
PG_PASS=changeme
|
||||||
DATA_PATH=/mnt/data
|
DATA_PATH=/mnt/data
|
||||||
LOGS_PATH=/mnt/logs
|
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
|
||||||
@@ -28,5 +28,53 @@ services:
|
|||||||
stop_grace_period: 30s
|
stop_grace_period: 30s
|
||||||
cap_add:
|
cap_add:
|
||||||
- NET_BIND_SERVICE
|
- 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:
|
volumes:
|
||||||
bambuddy_logs:
|
bambuddy_logs:
|
||||||
|
|||||||
Reference in New Issue
Block a user