Docker Deployment
ByteBox includes a production-oriented Docker setup with persistent SQLite storage.
Quick Start
Section titled “Quick Start”docker compose up --build -dThen open http://localhost:1334.
What Compose Configures
Section titled “What Compose Configures”- Service:
bytebox - Port mapping:
1334:1334 - Persistent volume:
bytebox-datamounted at/data DATABASE_URL=file:/data/bytebox.db- Healthcheck endpoint:
GET /api/cards
Startup Behavior
Section titled “Startup Behavior”Container entrypoint runs:
prisma migrate deploynext start -p 1334 -H 0.0.0.0
This ensures schema is current before serving traffic.
Useful Commands
Section titled “Useful Commands”docker compose logs -fdocker compose downdocker compose up -ddocker compose up --build -dOperational Tips
Section titled “Operational Tips”- Rebuild image after dependency or build changes.
- Back up the
bytebox-datavolume before major upgrades. - Watch logs during first boot to confirm migration success.