Self-hosted firearm inventory with backups, login, and offline support
776
Self-hosted firearm inventory for your home network. Track firearms, ammunition, reloading components (powder, primers, brass, projectiles, dies, shell holders), reloading recipes, accessories and documents, with photos. Every device on your network shares the same inventory.
/data. Nothing is sent anywhere./backups, plus backups before every import and reset.Prefer nothing to install? The online version runs in any browser at ThinLineVault.com (data stays in that browser). Backups move between the two with Export and Import.
Presented by ThinLineWeapons.com.
Install it any way you like: Container Station, Portainer, Unraid, Synology, or plain Docker.
The only port is 8080; map /data and /backups to folders if you want to see them on
your network.
docker run -d --name thinlinevault --restart unless-stopped \
-p 8090:8080 \
-v "$(pwd)/data:/data" -v "$(pwd)/backups:/backups" \
-e TZ=America/New_York \
lerryv2/thinlinevault:latest
Then open http://<server-ip>:8090. The first visit shows a Welcome screen: set up a
username and password, or skip it and have no login. You can turn a login on, change it or turn
it off later from the Reports page.
Or with Docker Compose (docker compose up -d):
services:
thinlinevault:
image: lerryv2/thinlinevault:latest
container_name: thinlinevault
restart: unless-stopped
ports:
- "8090:8080"
volumes:
- ./data:/data
- ./backups:/backups
environment:
- TZ=America/New_York
| Variable | Default | Description |
|---|---|---|
TZ | Etc/UTC | Time zone, e.g. America/New_York |
LOGIN_ENABLED | (not set) | Optional override: false = never a login, true = a login is required |
VAULT_USERNAME / VAULT_PASSWORD_HASH | Optional: set the login here instead of in the browser. Make the hash offline with docker run --rm -it lerryv2/thinlinevault hash-password | |
BACKUP_TIME | 02:00 | Daily backup time (24-hour) |
BACKUP_KEEP | 30 | Daily backups to keep |
UPDATE_CHECK | true | Daily check for a newer version (only version numbers are fetched). false = never contact the internet |
MAX_UPLOAD_MB | 200 | Largest single save or import |
| Path | Contents |
|---|---|
/data | The database (vault.db) and login key. Back this up. |
/backups | Automatic backups. Each one restores with Import Data on the Reports page. |
The site listens on port 8080 inside the container.
Run reset-password inside the container: in Container Station, open the container, click
Execute and type reset-password; or run docker exec thinlinevault reset-password.
The next visit shows the Welcome screen again. Your inventory isn't touched.
docker compose pull
docker compose up -d
Platforms: linux/amd64, linux/arm64.
Free to use and distribute. Modification, resale, or redistribution of modified versions is prohibited without express written permission from ThinLineWeapons.com. Any derivative works must provide attribution to the original author.
Content type
Image
Digest
sha256:00f543988…
Size
45.9 MB
Last updated
25 days ago
docker pull lerryv2/thinlinevault