InvenTree
Conteneur LXC oraad — proxmox-scripts
Accès par défaut
- Adresse
http://ADRESSE-IP:80Remplacez ADRESSE-IP par l'adresse donnée à la fin de l'installation.- Compte
admin- Console et SSH
- Console du conteneur dans l'interface Proxmox : compte
root, connexion automatique sans mot de passe. Le SSH derootn'est ouvert que si vous l'avez demandé à l'installation. - Configuration
/etc/inventree/config.yaml
- The admin password is auto-generated at install, shown once on screen, and saved to /etc/inventree/credentials.txt (mode 0600). If the package ever creates its own (it only does so when the password is auto-generated), it is stored in /etc/inventree/admin_password.txt.
- Default database backend is SQLite (/opt/inventree/data/database.sqlite3) — well suited to small/medium deployments and single-file backups. For PostgreSQL, set INVENTREE_DB_ENGINE=postgresql plus INVENTREE_DB_NAME/USER/PASSWORD/HOST/PORT before a fresh install. Media/static/backups live under /opt/inventree/data.
- Unattended install overrides:
var_admin_user,var_admin_email,var_admin_password, andvar_site_url.
Valeurs publiques de l'éditeur : changez-les dès la première connexion.
InvenTree is an open-source inventory management system for tracking parts, stock, suppliers, manufacturers, and bills of materials, with a modern web interface and full REST API. This script installs the official InvenTree native apt package (packager.io) on a Debian 13 LXC — no Docker needed. The package provides systemd services (inventree-web, inventree-worker), a nginx reverse proxy on port 80, an auto-created admin account, and runs database migrations during setup.
Installer
- Cœurs
- 2
- Mémoire
- 4 Go
- Disque
- 20 Go
- Système
- Debian 13
bash -c "$(curl -fsSL https://raw.githubusercontent.com/oraad/proxmox-scripts/main/ct/inventree.sh)"
Configuration : /etc/inventree/config.yaml
Dans le shell du nœud Proxmox. Exécutez cette commande dans le shell du nœud Proxmox, pas dans une VM. Lisez le script d'abord.
Tutoriel pas à pas
De l'interface de Proxmox jusqu'à la première connexion, pour InvenTree.
-
Ouvrez l'interface de Proxmox dans votre navigateur et connectez-vous.
-
Dans l'arbre de gauche, cliquez sur votre nœud, puis sur « Shell ».
-
Vérifiez que le nœud a la place pour ce conteneur : 2 cœurs, 4 Go de mémoire, 20 Go de disque.
-
Copiez cette commande, collez-la dans le shell et appuyez sur Entrée.
bash -c "$(curl -fsSL https://raw.githubusercontent.com/oraad/proxmox-scripts/main/ct/inventree.sh)" -
Attendez la fin de l'installation : le script affiche l'adresse du conteneur.
-
Ouvrez
http://ADRESSE-IP:80dans votre navigateur, en remplaçant ADRESSE-IP par l'adresse affichée. -
Connectez-vous avec le compte
admin, puis changez tout de suite le mot de passe. -
Pour mettre à jour plus tard : tapez
updatedans la console du conteneur. -
Le fichier de configuration se trouve ici :
/etc/inventree/config.yaml
À savoir
- Native apt install requires a Debian 13 (trixie) LXC — the upstream installer supports Debian 13 and Ubuntu 24.04/26.04 only, so there is no Alpine install method for this script. If
var_versionis set below 13 the installer aborts. - Web UI: http://<container-ip>; (nginx on port 80 proxying to gunicorn on localhost:6000). Site URL defaults to the container IP; override with
var_site_url=[...]at install or later withinventree config:set INVENTREE_SITE_URL=http://.... The nginx site is /etc/nginx/sites-enabled/inventree.conf (HTTP only) — use a separate HTTPS site or terminate SSL at an external proxy. - Services:
inventree(main),inventree-web,inventree-worker, plusnginx. Control withsystemctl restart inventree/inventree restart, follow logs withinventree logs, and run invoke tasks withinventree run invoke <command>. - Update an existing container: run
updateinside the LXC, orpct exec <CTID> -- update. Options: Update InvenTree (dist-upgrade thenapt-get install --only-upgrade inventree, which runs migrations and backs up the database by default — log history in /opt/inventree/log), Remove Unused Packages, or Restart. To track the dev build, replacestablewithmasterin /etc/apt/sources.list.d/inventree.list. - Template: Debian 13 standard template from the Proxmox repository — run
pveam update, thenpveam available --section system | grep debian-13andpveam download local <template>if missing.
