Quick start
This sets up the site with Docker Compose on the machine that will run it. You need Docker with the Compose plugin
(docker compose version should work).
-
Get the compose files. Make a folder for the site and download the compose file, the optional NFS add-on and the example settings:
Terminal window mkdir 3mf-library && cd 3mf-librarycurl -fsSLO https://raw.githubusercontent.com/jurjen74/3mf-library/main/docker-compose.ymlcurl -fsSLO https://raw.githubusercontent.com/jurjen74/3mf-library/main/compose.nfs.ymlcurl -fsSL -o .env https://raw.githubusercontent.com/jurjen74/3mf-library/main/.env.example -
Tell it where your models are. Open
.envand set at least:Terminal window LIBRARY_DIR=/srv/3d-prints # the folder with your 3MF/STL filesTRUSTED_NETWORKS=192.168.1.0/24 # your home network: no login needed thereTZ=Europe/Amsterdam # for the dates on the siteModels on a NAS? Use an NFS share instead of
LIBRARY_DIR. Every other setting is described in Configuration. -
Create the data folder. The app runs as user 1000 by default. It needs to read the library and write to
./data(the index, previews and accounts):Terminal window mkdir -p data && sudo chown 1000:1000 dataIf your files belong to another user, set
PUIDandPGIDin.env(seels -non the library) and use those numbers here. -
Start it.
Terminal window docker compose up -ddocker compose logs -f # Ctrl+C to stop watching -
Open the site at
http://<this machine>:8085and create the first account.
The first scan reads every file once. A few hundred models take a minute or two; you can already browse while it runs. After that, only new and changed files are read.