reintroduce seperate worker task

This commit is contained in:
Matthias Mair 2024-02-20 00:27:19 +01:00
parent c7fae4c8e8
commit 28d06a4c5d
No known key found for this signature in database
GPG Key ID: A593429DDA23B66A

View File

@ -35,7 +35,7 @@ services:
# InvenTree web server service
# Runs the django built-in webserver application
inventree-dev:
inventree-dev-server:
depends_on:
- inventree-dev-db
build: &build_config
@ -53,3 +53,16 @@ services:
- docker.dev.env
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