mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +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:
parent
f23cef0400
commit
cbae4474ab
@ -55,6 +55,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
# Ensure you specify the location of the 'src' directory at the end of this file
|
# Ensure you specify the location of the 'src' directory at the end of this file
|
||||||
- inventree_src:/home/inventree
|
- inventree_src:/home/inventree
|
||||||
|
- inventree_plugins:/home/inventree/InvenTree/plugins
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
@ -69,6 +70,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
# Ensure you specify the location of the 'src' directory at the end of this file
|
# Ensure you specify the location of the 'src' directory at the end of this file
|
||||||
- inventree_src:/home/inventree
|
- inventree_src:/home/inventree
|
||||||
|
- inventree_plugins:/home/inventree/InvenTree/plugins
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
@ -102,3 +104,10 @@ volumes:
|
|||||||
# This directory specified where InvenTree source code is stored "outside" the docker containers
|
# This directory specified where InvenTree source code is stored "outside" the docker containers
|
||||||
# By default, this directory is one level above the "docker" directory
|
# By default, this directory is one level above the "docker" directory
|
||||||
device: ${INVENTREE_EXT_VOLUME:-./}
|
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}
|
||||||
|
@ -9,6 +9,9 @@
|
|||||||
# e.g. Windows (docker desktop)
|
# e.g. Windows (docker desktop)
|
||||||
#INVENTREE_EXT_VOLUME=c:/Users/me/inventree-data
|
#INVENTREE_EXT_VOLUME=c:/Users/me/inventree-data
|
||||||
|
|
||||||
|
# Location of optional plugin directory
|
||||||
|
# INVENTREE_EXT_PLUGINS=/home/me/inventree-data/plugins
|
||||||
|
|
||||||
# Default web port for the InvenTree server
|
# Default web port for the InvenTree server
|
||||||
INVENTREE_WEB_PORT=1337
|
INVENTREE_WEB_PORT=1337
|
||||||
|
|
||||||
|
@ -85,6 +85,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
# Data volume must map to /home/inventree/data
|
# Data volume must map to /home/inventree/data
|
||||||
- inventree_data:/home/inventree/data
|
- inventree_data:/home/inventree/data
|
||||||
|
- inventree_plugins:/home/inventree/InvenTree/plugins
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
# Background worker process handles long-running or periodic tasks
|
# Background worker process handles long-running or periodic tasks
|
||||||
@ -100,6 +101,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
# Data volume must map to /home/inventree/data
|
# Data volume must map to /home/inventree/data
|
||||||
- inventree_data:/home/inventree/data
|
- inventree_data:/home/inventree/data
|
||||||
|
- inventree_plugins:/home/inventree/InvenTree/plugins
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
# nginx acts as a reverse proxy
|
# nginx acts as a reverse proxy
|
||||||
@ -134,3 +136,10 @@ volumes:
|
|||||||
o: bind
|
o: bind
|
||||||
# This directory specified where InvenTree data are stored "outside" the docker containers
|
# This directory specified where InvenTree data are stored "outside" the docker containers
|
||||||
device: ${INVENTREE_EXT_VOLUME:?You must specify the 'INVENTREE_EXT_VOLUME' variable in the .env file!}
|
device: ${INVENTREE_EXT_VOLUME:?You must specify the 'INVENTREE_EXT_VOLUME' variable in the .env file!}
|
||||||
|
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:-./}
|
||||||
|
Loading…
Reference in New Issue
Block a user