Repository navigation
Installation
This page is mirrored automatically from
docs/en/installation.md(v1.7.2). Changes made here are overwritten; please suggest them as a pull request.
English · Deutsch · ← Documentation
You need Docker with Docker Compose 2.24 or newer. Images are available for PCs and servers (amd64) and 64-bit ARM (arm64, e.g. Raspberry Pi 4/5 with a 64-bit OS and many NAS devices). Docker picks the right one automatically.
mkdir plateshelf && cd plateshelf
curl -O https://raw.githubusercontent.com/schnuecks/plateshelf/main/compose.yaml
curl -o .env https://raw.githubusercontent.com/schnuecks/plateshelf/main/.env.example
mkdir -p library data
docker compose up -dPlateShelf is now available at http://<server>:8000. On the first visit you create
the admin account; the setup code it asks for is in the log (docker compose logs plateshelf), see Access control. Put your .gcode.3mf, .gcode or .bgcode files into
the library folder. They show up within seconds; on network shares, where changes are
not always reported, within two minutes at the latest.
The library and data folders must be writable for the user the container runs as
(PUID and PGID in the .env, default 1000). Otherwise startup fails with “unable
to open database file”.
docker compose pull && docker compose up -dTo stay on version 1 and skip a future major version with manual steps, use the image tag
:1 instead of :latest (PLATESHELF_IMAGE=ghcr.io/schnuecks/plateshelf:1 in .env).
The database is upgraded automatically on startup if needed. If the format of the 3D preview changes, the previews are rebuilt once in the background. What changed in each version is listed in the CHANGELOG. Coming from a version before 0.7 (including the old name Druckarchiv), update to 0.7.7 first and start it once.
PlateShelf listens on port 8000 inside the container and needs no special proxy
settings. An example for Traefik (instead of ports: in the compose.yaml):
labels:
- traefik.enable=true
- traefik.http.routers.plateshelf.rule=Host(`plateshelf.example.com`)
- traefik.http.services.plateshelf.loadbalancer.server.port=8000PlateShelf takes the visitor's address (for the sign-in lock and the log) from
X-Forwarded-For, but only from proxies listed in FORWARDED_ALLOW_IPS. The supplied
compose.yaml publishes port 8000 directly and therefore sets FORWARDED_ALLOW_IPS=127.0.0.1:
otherwise any device in your network could send a made-up address. With a reverse proxy in
front, set its address in .env, e.g. FORWARDED_ALLOW_IPS=172.20.0.5, or its Docker
network, e.g. 172.20.0.0/16; otherwise every visitor appears with the proxy's address and
one person's failed attempts lock out everybody. Without that line in your own compose file,
the image trusts all local and private networks. Never use *.
- Files in the library are never modified, only moved to the trash when you delete them.
- Your own photos of prints lie in the library under
.photos/and are backed up with it. - The database (SQLite), preview images, 3D previews and your notes are stored in the data folder.
-
Backup: “Settings” → “Backup” downloads the database as a single file, consistent
even while PlateShelf is running. It contains projects with notes, tags and status,
assignments, settings, printers, users and the print history. Back up the library folder
with the print files as usual. Keep
SECRET_KEYsomewhere safe as well, because the printer credentials in the backup can only be read with it. -
Automatic backups: once a day PlateShelf writes such a backup to
backups/in the data folder and keeps the lastBACKUP_KEEP(default 7;0switches this off). The settings list them for download or restore. - Restore: under “Settings” → “Backup”, upload a backup or pick one of the automatic ones. PlateShelf first saves the current state as “before restore”, then replaces the database, upgrades it if needed and rebuilds preview images and 3D previews. Users and sign-ins come from the backup, so you may have to sign in again.
-
Move to another computer: copy the library folder, restore the backup there and use
the same
SECRET_KEYin the.env. By hand, without the interface: stop PlateShelf, put the backup into the data folder asplateshelf.sqlite(deleteplateshelf.sqlite-waland-shmif present) and start it again. - The database has a schema version and is upgraded automatically on start.
- New and changed files are detected right away. On network shares (SMB/NFS) the system
often does not report changes made elsewhere; there PlateShelf still checks every
SCAN_INTERVALseconds. Keep the data folder on a local disk, though, because SQLite is unreliable on network shares.
PlateShelf on GitHub · v1.7.2