PrintMaster DOCS
GitHub ↗

Docker Deployment

Deploy PrintMaster Server using Docker containers with multi-architecture support.

Package overview and release channels

Agent and Server publish independently, so their versioned tags can differ:

ComponentStable tagsBeta tagsDev tags
Serverlatest, 0.32.0beta, 0.32.0-beta.3main, dev-<short-sha>
Agentlatest, 0.32.3beta, 0.32.0-beta.4main, 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.

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:

ArchitecturePlatformUse Case
linux/amd64x86_64 serversIntel/AMD servers, cloud VMs
linux/arm64ARM 64-bitApple 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=0 and PGID=0, so it runs as root by default, not UID 65532.
  • Privilege drop: Set nonzero PUID/PGID to run the server under the chosen IDs. The entrypoint starts as root, fixes volume ownership, then uses su-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 version
  • 0.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

VariableDefaultDescription
ADMIN_PASSWORDprintmasterSet before first run!
BIND_ADDRESS0.0.0.0Bind address; restrict exposure with firewall/proxy
LOG_LEVELinfodebug, info, warn, error

Network & Ports

VariableDefaultDescription
SERVER_HTTP_PORT9090HTTP backend port when BEHIND_PROXY=true and PROXY_USE_HTTPS=false
SERVER_HTTPS_PORT9443Default standalone HTTPS or encrypted proxy backend
BEHIND_PROXYfalseSet true if behind reverse proxy
PROXY_USE_HTTPSfalsefalse: HTTP upstream; true: HTTPS upstream on 9443 (with BEHIND_PROXY=true)

TLS/HTTPS

VariableDefaultDescription
TLS_MODEself-signedself-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

VariableDescription
LETSENCRYPT_DOMAINDomain for certificate
LETSENCRYPT_EMAILNotification email
LETSENCRYPT_ACCEPT_TOSAccept 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

VariableDefaultDescription
AUTO_APPROVE_AGENTSfalseAuto-approve new agents
AGENT_TIMEOUT_MINUTES15Timeout before marking offline

Container Detection

VariableEffect
PM_DISABLE_SELFUPDATEDisable self-update (recommended for Docker)
CONTAINER=dockerAuto-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

Container PathPurpose
/var/lib/printmaster/serverDatabase and config
/var/log/printmaster/serverLog 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 host is 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.


See Also