Files
home-server/komodo/automate/bambuddy/compose.yaml

81 lines
3.0 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
services:
bambuddy:
image: ghcr.io/maziggy/bambuddy:latest
container_name: bambuddy
# network_mode: host # Recommended for automatic printer discovery
volumes:
- ${DATA_PATH}:/app/data
- ${LOGS_PATH}:/app/logs
environment:
- PUID=${PUID:-1000}
- PGID=${PGID:-1000}
- TZ=America/Toronto # Your timezone
- TRUSTED_FRAME_ORIGINS=http://homeassistant.local:8123
ports:
- "${PORT:-8870}:8000" # Web UI
- "3000:3000" # Virtual printer bind/detect
- "3002:3002" # Virtual printer bind/detect (alt port)
- "990:990" # Virtual printer FTPS
- "8883:8883" # Virtual printer MQTT
- "6000:6000" # Virtual printer file transfer tunnel
- "322:322" # Virtual printer RTSP camera (X1/H2/P2)
- "2024-2026:2024-2026" # Virtual printer proprietary ports (A1/P1S)
- "50000-50029:50000-50029" # Virtual printer FTP passive data — 3 VPs × 10-port slice
restart: unless-stopped
# Docker SIGKILLs after 10s by default. Bambuddy stops well inside that,
# but the headroom means a slow teardown (several virtual printers on a Pi)
# can still checkpoint the database instead of being killed mid-write.
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: