2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 02:55:41 +00:00

Allow installation of local plugins via docker (#3348)

* Add option to mpunt plugins to docker

* [FR] Allow installation of local plugins via docker
Fixes #3343
This commit is contained in:
Matthias Mair
2022-07-19 00:18:54 +02:00
committed by GitHub
parent f23cef0400
commit cbae4474ab
3 changed files with 21 additions and 0 deletions

View File

@ -55,6 +55,7 @@ services:
volumes:
# Ensure you specify the location of the 'src' directory at the end of this file
- inventree_src:/home/inventree
- inventree_plugins:/home/inventree/InvenTree/plugins
env_file:
- .env
restart: unless-stopped
@ -69,6 +70,7 @@ services:
volumes:
# Ensure you specify the location of the 'src' directory at the end of this file
- inventree_src:/home/inventree
- inventree_plugins:/home/inventree/InvenTree/plugins
env_file:
- .env
restart: unless-stopped
@ -102,3 +104,10 @@ volumes:
# This directory specified where InvenTree source code is stored "outside" the docker containers
# By default, this directory is one level above the "docker" directory
device: ${INVENTREE_EXT_VOLUME:-./}
inventree_plugins:
driver: local
driver_opts:
type: none
o: bind
# This directory specified where the optional local plugin directory is stored "outside" the docker containers
device: ${INVENTREE_EXT_PLUGINS:-../InvenTree/plugins}