Compare commits

...

2 Commits

Author SHA1 Message Date
Nikholas Pcenicni
470beb5012 Add PORT environment variable to bambuddy service configuration 2026-08-18 22:47:47 -04:00
Nikholas Pcenicni
810ddaa844 Remove build instructions from bambuddy service in compose.yaml for clarity 2026-08-18 22:46:44 -04:00

View File

@@ -1,10 +1,6 @@
services: services:
bambuddy: bambuddy:
image: ghcr.io/maziggy/bambuddy:latest 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 container_name: bambuddy
network_mode: host # Recommended for automatic printer discovery network_mode: host # Recommended for automatic printer discovery
volumes: volumes:
@@ -16,6 +12,7 @@ services:
- DATABASE_URL=postgresql://${PG_USER:-bambuddy}:${PG_PASS:?database password required}@postgres:5432/bambuddy - DATABASE_URL=postgresql://${PG_USER:-bambuddy}:${PG_PASS:?database password required}@postgres:5432/bambuddy
- TRUSTED_FRAME_ORIGINS=http://homeassistant.local:8123 - TRUSTED_FRAME_ORIGINS=http://homeassistant.local:8123
- BAMBUDDY_EXTERNAL_ROOTS=/external/nas - BAMBUDDY_EXTERNAL_ROOTS=/external/nas
- PORT=8870
restart: unless-stopped restart: unless-stopped
# Docker SIGKILLs after 10s by default. Bambuddy stops well inside that, # Docker SIGKILLs after 10s by default. Bambuddy stops well inside that,
# but the headroom means a slow teardown (several virtual printers on a Pi) # but the headroom means a slow teardown (several virtual printers on a Pi)