Docker Installation¶
Docker is the easiest way to run Bambuddy. One command and you're done!
Quick Start¶
Interactive script that prompts for configuration and sets everything up:
curl -fsSL https://raw.githubusercontent.com/maziggy/bambuddy/main/install/docker-install.sh -o docker-install.sh && chmod +x docker-install.sh && ./docker-install.sh
The script will:
- Prompt for install path, port, bind address, timezone
- Download docker-compose.yml (or clone repo if building from source)
- Create .env file with your settings
- Start the container
The fastest way - no building required:
mkdir bambuddy && cd bambuddy
curl -O https://raw.githubusercontent.com/maziggy/bambuddy/main/docker-compose.yml
docker compose up -d
Multi-Architecture Support
Pre-built images are available for:
- linux/amd64 - Intel/AMD servers, desktops, most VPS
- linux/arm64 - Raspberry Pi ⅘, Apple Silicon Macs, AWS Graviton
Docker automatically pulls the correct image for your system.
Open http://localhost:8000 in your browser.
Configuration¶
docker-compose.yml¶
The default docker-compose.yml works out of the box:
services:
bambuddy:
image: ghcr.io/maziggy/bambuddy:latest
build: .
# Usage:
# docker compose up -d → pulls pre-built image
# docker compose up -d --build → builds from source
container_name: bambuddy
network_mode: host # Required for printer discovery
volumes:
- bambuddy_data:/app/data
- bambuddy_logs:/app/logs
environment:
- TZ=Europe/Berlin # Your timezone
restart: unless-stopped
volumes:
bambuddy_data:
bambuddy_logs:
Image vs Build
When both image and build are specified:
docker compose up -dpulls the pre-built image fromghcr.iodocker compose up -d --buildbuilds locally from source
Environment Variables¶
| Variable | Default | Description |
|---|---|---|
TZ | UTC | Your timezone (e.g., America/New_York) |
PORT | 8000 | Port Bambuddy runs on (with host networking mode) |
DEBUG | false | Enable debug logging |
LOG_LEVEL | INFO | Log level: DEBUG, INFO, WARNING, ERROR |
HA_URL | (none) | Home Assistant URL for automatic integration (e.g., http://192.168.1.100:8123) |
HA_TOKEN | (none) | Home Assistant Long-Lived Access Token for automatic integration |
Home Assistant Integration
When both HA_URL and HA_TOKEN are set, the Home Assistant integration is automatically enabled and configured. The URL and token fields become read-only in the UI. This is primarily used by the Home Assistant add-on for zero-configuration setup.
Custom Port¶
Linux Users: Permission Denied?
If you get "permission denied" errors, either prefix commands with sudo (e.g., sudo docker compose up -d) or add your user to the docker group.
Data Persistence¶
Three volumes store your data:
| Volume | Purpose |
|---|---|
bambuddy.db | SQLite database with all your print data |
archive/ | Archived 3MF files and thumbnails |
logs/ | Application logs |
Backup
To backup your data, simply copy these files/directories. See Backup & Restore for the built-in backup feature.
Updating¶
In-App Updates Not Available
Docker installations cannot use the in-app update feature. When an update is available, Bambuddy will show the commands below in Settings → Updates.
Simply pull the latest image:
Or as a one-liner:
Useful Commands¶
View Logs¶
Stop/Start¶
Rebuild (after changes)¶
Shell Access¶
Advanced Setups¶
Reverse Proxy (Nginx)¶
To run Bambuddy behind a reverse proxy with HTTPS:
server {
listen 443 ssl http2;
server_name bambuddy.yourdomain.com;
ssl_certificate /path/to/cert.pem;
ssl_certificate_key /path/to/key.pem;
location / {
proxy_pass http://localhost:8000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# WebSocket support
proxy_read_timeout 86400;
}
}
WebSocket Support
Make sure your reverse proxy supports WebSocket connections - this is required for real-time printer updates.
Traefik Labels¶
If you're using Traefik:
services:
bambuddy:
build: .
labels:
- "traefik.enable=true"
- "traefik.http.routers.bambuddy.rule=Host(`bambuddy.yourdomain.com`)"
- "traefik.http.routers.bambuddy.entrypoints=websecure"
- "traefik.http.routers.bambuddy.tls.certresolver=letsencrypt"
# ... rest of config
Network Mode Host¶
Host network mode is required for printer discovery and camera streaming:
Required for Printer Discovery
Docker's default bridge networking cannot receive SSDP multicast packets needed for automatic printer discovery. You must use network_mode: host for discovery to work.
When Using Host Mode
- Remove the
ports:section (not needed with host mode) - Bambuddy will be accessible on port 8000 directly
- All other features work the same
macOS and Windows (Docker Desktop)¶
Docker Desktop on macOS and Windows runs containers inside a Linux VM, so network_mode: host connects to the VM's network, not your computer's network. This means:
- Port 8000 won't be accessible via localhost
- Printer discovery won't work (the container can't see your LAN)
Solution: Use port mapping instead of host mode:
services:
bambuddy:
image: ghcr.io/maziggy/bambuddy:latest
container_name: bambuddy
# network_mode: host # Doesn't work on macOS/Windows
ports:
- "${PORT:-8000}:8000" # Use PORT=8080 docker compose up for custom port
- "8883:8883" # Virtual printer MQTT (proxy mode)
- "9990:9990" # Virtual printer FTP control
- "50000-50100:50000-50100" # Virtual printer FTP passive data
volumes:
- bambuddy_data:/app/data
- bambuddy_logs:/app/logs
- bambuddy_vprinter:/app/virtual_printer
environment:
- TZ=Europe/Berlin
restart: unless-stopped
volumes:
bambuddy_data:
bambuddy_logs:
bambuddy_vprinter:
Manual Printer Setup Required
On macOS/Windows, you must add printers manually by IP address. Automatic discovery is not available because Docker Desktop cannot access LAN multicast traffic.
Printer Discovery in Docker¶
Virtual Printer SSDP Discovery
SSDP discovery for the virtual printer (slicer discovering Bambuddy) also requires host networking or same-LAN connectivity. In Docker bridge mode (macOS/Windows), slicers must add the virtual printer manually by IP address.
When running in Docker with network_mode: host, Bambuddy uses subnet scanning instead of SSDP multicast for printer discovery:
- Click Add Printer on the Printers page
- Bambuddy detects it's running in Docker and shows a subnet input field
- Enter your network range (e.g.,
192.168.1.0/24) - Click Scan Network - Bambuddy will probe each IP for Bambu printer ports (8883, 990)
- Discovered printers appear in the list with their name and model
Finding Your Subnet
Your subnet is typically your IP address with the last number replaced by 0/24. For example:
- If your computer's IP is
192.168.1.50, use192.168.1.0/24 - If your computer's IP is
10.0.0.25, use10.0.0.0/24
How It Works
Subnet scanning checks each IP address in the range for open ports 8883 (MQTT) and 990 (FTPS). When both ports are open, it sends an SSDP query to get the printer's name, serial number, and model.
Troubleshooting¶
Container Won't Start¶
Check the logs:
Common issues:
- Port in use: Change the port mapping
- Permission denied: Check volume permissions
Can't Connect to Printer¶
Ensure your Docker network can reach your printer:
If using bridge network mode and having issues, try network_mode: host.
Database Issues¶
If you need to reset the database:
Data Loss
This will delete all your print history and settings!