streamline volumes between server and worker
This commit is contained in:
parent
f30620a8a2
commit
b0459af78f
2 changed files with 4 additions and 5 deletions
|
|
@ -80,7 +80,7 @@ services:
|
||||||
- inventree-cache
|
- inventree-cache
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
volumes:
|
volumes: &inventree-volumes
|
||||||
# Data volume must map to /home/inventree/data
|
# Data volume must map to /home/inventree/data
|
||||||
- ${INVENTREE_EXT_VOLUME}:/home/inventree/data:z
|
- ${INVENTREE_EXT_VOLUME}:/home/inventree/data:z
|
||||||
- ./plugins.txt:/home/inventree/data/plugins.txt:ro,z
|
- ./plugins.txt:/home/inventree/data/plugins.txt:ro,z
|
||||||
|
|
@ -97,9 +97,7 @@ services:
|
||||||
- inventree-server
|
- inventree-server
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
volumes:
|
volumes: *inventree-volumes
|
||||||
# Data volume must map to /home/inventree/data
|
|
||||||
- ${INVENTREE_EXT_VOLUME}:/home/inventree/data:z
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
# caddy acts as reverse proxy and static file server
|
# caddy acts as reverse proxy and static file server
|
||||||
|
|
|
||||||
|
|
@ -20,8 +20,9 @@ INVENTREE_EXT_VOLUME=./inventree-data
|
||||||
# Ensure debug is false for a production setup
|
# Ensure debug is false for a production setup
|
||||||
INVENTREE_LOG_LEVEL=WARNING
|
INVENTREE_LOG_LEVEL=WARNING
|
||||||
|
|
||||||
# Enable custom plugins?
|
INVENTREE_PLUGIN_DIR=/home/inventree/plugins
|
||||||
INVENTREE_PLUGINS_ENABLED=True
|
INVENTREE_PLUGINS_ENABLED=True
|
||||||
|
INVENTREE_PLUGIN_NOINSTALL=True
|
||||||
|
|
||||||
# Run migrations automatically?
|
# Run migrations automatically?
|
||||||
INVENTREE_AUTO_UPDATE=True
|
INVENTREE_AUTO_UPDATE=True
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue