mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
reintroduce seperate worker task
This commit is contained in:
parent
c7fae4c8e8
commit
28d06a4c5d
@ -35,7 +35,7 @@ services:
|
|||||||
|
|
||||||
# InvenTree web server service
|
# InvenTree web server service
|
||||||
# Runs the django built-in webserver application
|
# Runs the django built-in webserver application
|
||||||
inventree-dev:
|
inventree-dev-server:
|
||||||
depends_on:
|
depends_on:
|
||||||
- inventree-dev-db
|
- inventree-dev-db
|
||||||
build: &build_config
|
build: &build_config
|
||||||
@ -53,3 +53,16 @@ services:
|
|||||||
- docker.dev.env
|
- docker.dev.env
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
# Background worker process handles long-running or periodic tasks
|
||||||
|
inventree-dev-worker:
|
||||||
|
image: inventree-dev-image
|
||||||
|
build: *build_config
|
||||||
|
command: invoke worker
|
||||||
|
depends_on:
|
||||||
|
- inventree-dev-server
|
||||||
|
volumes:
|
||||||
|
# Mount local source directory to /home/inventree
|
||||||
|
- ./:/home/inventree:z
|
||||||
|
env_file:
|
||||||
|
- docker.dev.env
|
||||||
|
restart: unless-stopped
|
||||||
|
Loading…
Reference in New Issue
Block a user