streamline volumes between server and worker

This commit is contained in:
Philipp 2026-02-08 16:45:55 +01:00
parent f30620a8a2
commit b0459af78f
Signed by: philipp
SSH key fingerprint: SHA256:ZWe7taUXeJb8xtjCZE7rZ3baSkVpBPjE4hdoKyJpfQE
2 changed files with 4 additions and 5 deletions

View file

@ -80,7 +80,7 @@ services:
- inventree-cache
env_file:
- .env
volumes:
volumes: &inventree-volumes
# Data volume must map to /home/inventree/data
- ${INVENTREE_EXT_VOLUME}:/home/inventree/data:z
- ./plugins.txt:/home/inventree/data/plugins.txt:ro,z
@ -97,9 +97,7 @@ services:
- inventree-server
env_file:
- .env
volumes:
# Data volume must map to /home/inventree/data
- ${INVENTREE_EXT_VOLUME}:/home/inventree/data:z
volumes: *inventree-volumes
restart: unless-stopped
# caddy acts as reverse proxy and static file server

View file

@ -20,8 +20,9 @@ INVENTREE_EXT_VOLUME=./inventree-data
# Ensure debug is false for a production setup
INVENTREE_LOG_LEVEL=WARNING
# Enable custom plugins?
INVENTREE_PLUGIN_DIR=/home/inventree/plugins
INVENTREE_PLUGINS_ENABLED=True
INVENTREE_PLUGIN_NOINSTALL=True
# Run migrations automatically?
INVENTREE_AUTO_UPDATE=True