Advanced installs

None of this is needed for a normal install. The repository’s own docker-compose.yml (clone the repository and run docker compose up -d) uses the same published image and the same Docker volume as the simple file. Optional settings go in a .env file next to it; .env.example lists them.

  • Data in a folder you choose (for backups with your own tools): set NETLENS_DATA=/srv/netlens in .env, create the folder and run sudo chown 10001:10001 /srv/netlens.
  • A specific version instead of the newest: set NETLENS_IMAGE_TAG=0.3.128 in .env, or change the image line to ghcr.io/gatlarf/netlens:0.3.128.
  • Build from source (developers): export NETLENS_VERSION="$(sh contrib/version.sh)", then docker compose -f docker-compose.yml -f docker-compose.build.yml up -d --build. Without NETLENS_VERSION the app works but reports the version as dev.

Existing installations

Nothing changes when you update: a NETLENS_TOKEN you already set keeps working as an administrator login, your data is migrated automatically and no first-start wizard appears. When you want to leave the shared token behind, create an administrator under Settings → Users & tokens, sign in with it, and then remove NETLENS_TOKEN from your compose file.