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

25 lines
862 B
YAML

services:
bambuddy:
image: ghcr.io/maziggy/bambuddy:latest
container_name: bambuddy
network_mode: host # Recommended for automatic printer discovery
volumes:
- bambuddy_data:/app/data
- bambuddy_logs:/app/logs
- ${DATA_PATH}/media/projects:/external/nas
environment:
- PUID=${PUID:-1000}
- PGID=${PGID:-1000}
- TZ=America/Toronto # Your timezone
- TRUSTED_FRAME_ORIGINS=http://homeassistant.local:8123
- BAMBUDDY_EXTERNAL_ROOTS=/external/nas
- PORT=8870
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
volumes:
bambuddy_data:
bambuddy_logs: