Docker Deployment
Deploy PrintMaster Server using Docker containers with multi-architecture support.
Package overview and release channels
- PrintMaster Server on GHCR: central multi-site printer fleet monitoring, dashboards, and Agent management.
- PrintMaster Agent on GHCR: site-local printer discovery, SNMP metrics, and reporting to a central Server.
Agent and Server publish independently, so their versioned tags can differ:
| Component | Stable tags | Beta tags | Dev tags |
|---|---|---|---|
| Server | latest, 0.32.0 | beta, 0.32.0-beta.3 | main, dev-<short-sha> |
| Agent | latest, 0.32.3 | beta, 0.32.0-beta.4 | main, dev-<short-sha> |
Docker version tags do not have a v prefix. Stable also publishes a
major.minor alias. Beta never moves Stable aliases, and Dev stays separate
from both. Pin a versioned tag for predictable deployments instead of a
moving alias.
The public downloads page features Stable and lists Beta separately. Agent Beta.4 was verified updating from Beta.3 while connected to Server Beta.3; this does not qualify upgrades from Agent 0.30.x/0.31.x. Dev is available only inside a collapsed Developer builds (Dev) section. Beta Agent releases have no MSI: use the Windows executable, versioned DEB/RPM assets, or Docker image. APT/DNF repository installation commands remain Stable-only.
Image metadata and changelog links
CD applies OCI metadata to each architecture’s image and to the combined
multi-architecture index: title, product description, MIT license, source and
documentation URLs, version, full source revision, creation time, and channel
(work.printmaster.image.channel). org.opencontainers.image.url points to the
specific component’s GitHub Release, which contains the generated changelog.
This links to existing release notes rather than copying or replacing them.
GHCR shows a short text description (maximum 512 characters), not a Docker Hub-style rich README. The description includes documentation and release-note links; the linked source README and this page provide the fuller package overview. Multi-architecture descriptions require index annotations, not just Docker labels. Local Docker builds include basic labels; CD adds the exact publishing metadata. Existing image versions are not modified retroactively.
Inspect a published version:
docker pull ghcr.io/printmaster-org/printmaster-server:0.32.0-beta.3
docker image inspect ghcr.io/printmaster-org/printmaster-server:0.32.0-beta.3 \
--format '{{json .Config.Labels}}'
docker buildx imagetools inspect ghcr.io/printmaster-org/printmaster-server:0.32.0-beta.3 \
--raw
Replace the example tag with an existing release. The index’s annotations
contain the package metadata; the pulled architecture’s image has the labels.
Release-note links become available when CD completes release publication.
Quick Start
docker run -d \
--name printmaster-server \
-p 9443:9443 \
-v printmaster-data:/var/lib/printmaster/server \
-e SERVER_DB_DRIVER=sqlite \
-e SERVER_DB_PATH=/var/lib/printmaster/server/server.db \
-e ADMIN_PASSWORD=your-secure-password \
ghcr.io/printmaster-org/printmaster-server:latest
Access at https://localhost:9443 with username admin. Standalone mode is HTTPS-only with a self-signed certificate by default; HTTP 9090 is a reverse-proxy backend, not the default listener.
Set a strong bootstrap password before exposing the server. At every startup, ADMIN_USER (default admin) is created only if that username is absent. ADMIN_PASSWORD does not reset an existing account’s password or role.
Supported Architectures
All images are built for multiple architectures automatically:
| Architecture | Platform | Use Case |
|---|---|---|
linux/amd64 | x86_64 servers | Intel/AMD servers, cloud VMs |
linux/arm64 | ARM 64-bit | Apple Silicon, AWS Graviton, Raspberry Pi 4+ |
Docker automatically pulls the correct architecture for your platform.
Image Details
Runtime base image: alpine:3.24, with a shell, su-exec, and SQLite tooling.
- User: The image sets
PUID=0andPGID=0, so it runs as root by default, not UID 65532. - Privilege drop: Set nonzero
PUID/PGIDto run the server under the chosen IDs. The entrypoint starts as root, fixes volume ownership, then usessu-exec. - Permissions: Ensure writable data/log volumes for the selected IDs. Do not assume a distroless or read-only-root-filesystem deployment.
Image tags:
latest- Latest stable release (recommended)0.32.0- Server Stable version0.32.3- Agent Stable version
Docker Compose
Create a docker-compose.yml file:
version: '3.8'
services:
printmaster-server:
image: ghcr.io/printmaster-org/printmaster-server:latest
container_name: printmaster-server
ports:
- "9443:9443" # Default standalone HTTPS
volumes:
- printmaster-data:/var/lib/printmaster/server
- printmaster-logs:/var/log/printmaster/server
environment:
- SERVER_DB_DRIVER=sqlite
- SERVER_DB_PATH=/var/lib/printmaster/server/server.db
- ADMIN_PASSWORD=your-secure-password
- BIND_ADDRESS=0.0.0.0
- LOG_LEVEL=info
- PM_DISABLE_SELFUPDATE=true
- PUID=1000 # Choose IDs suitable for your host volumes
- PGID=1000
restart: unless-stopped
volumes:
printmaster-data:
printmaster-logs:
Start with:
docker compose up -d
Environment Variables
Essential
| Variable | Default | Description |
|---|---|---|
ADMIN_PASSWORD | printmaster | Set before first run! |
BIND_ADDRESS | 0.0.0.0 | Bind address; restrict exposure with firewall/proxy |
LOG_LEVEL | info | debug, info, warn, error |
Network & Ports
| Variable | Default | Description |
|---|---|---|
SERVER_HTTP_PORT | 9090 | HTTP backend port when BEHIND_PROXY=true and PROXY_USE_HTTPS=false |
SERVER_HTTPS_PORT | 9443 | Default standalone HTTPS or encrypted proxy backend |
BEHIND_PROXY | false | Set true if behind reverse proxy |
PROXY_USE_HTTPS | false | false: HTTP upstream; true: HTTPS upstream on 9443 (with BEHIND_PROXY=true) |
TLS/HTTPS
| Variable | Default | Description |
|---|---|---|
TLS_MODE | self-signed | self-signed, letsencrypt, custom |
TLS_CERT_PATH | — | Certificate path (custom mode; mount the file) |
TLS_KEY_PATH | — | Key path (custom mode; mount the file) |
Let’s Encrypt
| Variable | Description |
|---|---|
LETSENCRYPT_DOMAIN | Domain for certificate |
LETSENCRYPT_EMAIL | Notification email |
LETSENCRYPT_ACCEPT_TOS | Accept ToS (true) |
Direct Let’s Encrypt mode also needs public HTTP challenge access on port 80; the examples above do not publish it. For TLS termination at a proxy, configure certificates there instead. none, disabled, acme, and manual are not supported server TLS modes.
Agent Management
| Variable | Default | Description |
|---|---|---|
AUTO_APPROVE_AGENTS | false | Auto-approve new agents |
AGENT_TIMEOUT_MINUTES | 15 | Timeout before marking offline |
Container Detection
| Variable | Effect |
|---|---|
PM_DISABLE_SELFUPDATE | Disable self-update (recommended for Docker) |
CONTAINER=docker | Auto-detected, disables self-update |
See Environment Variables for selected variables, including the PostgreSQL driver and DSN. SQLite TOML uses [database].driver and path; PostgreSQL uses driver = "postgres" and dsn.
Reverse proxy
For TLS termination, private upstream networking, WebSocket requirements, and ready-to-adapt examples for Nginx, Nginx Proxy Manager, Caddy, Traefik, Apache, HAProxy, and IIS, see Reverse proxy setup.
Volumes & Data
Recommended Volume Mounts
| Container Path | Purpose |
|---|---|
/var/lib/printmaster/server | Database and config |
/var/log/printmaster/server | Log files |
The TimescaleDB PostgreSQL 18 Compose image mounts its database volume at
/var/lib/postgresql. Do not change this to /var/lib/postgresql/data; that
older mount layout can prevent the PG18 image from finding its data directory.
For PostgreSQL major-version migrations and TimescaleDB restore hooks, see PostgreSQL and TimescaleDB Upgrades.
Backup and restore
See Backup & restore for consistent SQLite and PostgreSQL backups, isolated restore tests, and recovery limits.
Health Check
The server provides a built-in health probe which selects the configured HTTP or HTTPS listener and handles local self-signed TLS:
docker exec printmaster-server /printmaster-server -health
Add to the Compose service:
healthcheck:
test: ["CMD", "/printmaster-server", "-health"]
interval: 30s
timeout: 10s
retries: 3
Updating
# Pull latest image
docker pull ghcr.io/printmaster-org/printmaster-server:latest
# Recreate container
docker compose down
docker compose up -d
# Check version
docker logs printmaster-server | head -5
PostgreSQL and TimescaleDB upgrades
The repository Compose examples use timescale/timescaledb:latest-pg18 for
new deployments. Changing a PostgreSQL major version while reusing an existing
database volume is not a valid upgrade and can make the database refuse to
start. Never delete the old volume as a workaround.
For the required backup, new-volume migration, and verification steps, see PostgreSQL and TimescaleDB Upgrades.
Agent in Docker
For specialized deployments (not typical):
docker run -d \
--name printmaster-agent \
--network host \
-v printmaster-agent-data:/var/lib/printmaster/agent \
-e SERVER_ENABLED=true \
-e SERVER_URL=https://your-server:9443 \
ghcr.io/printmaster-org/printmaster-agent:latest
Note:
--network hostis required for SNMP discovery to work properly.
Complete onboarding and use a certificate trusted by the agent for HTTP uploads and WSS. At this snapshot, the WebSocket client does not propagate the custom CA pool used by the HTTP uploader; do not treat SERVER_CA_PATH alone as a complete WSS trust solution.