From 28d06a4c5da3aadf778ddf188d4cbad8fe308211 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Tue, 20 Feb 2024 00:27:19 +0100 Subject: [PATCH] reintroduce seperate worker task --- docker-compose.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9f7d3fe6a9..a1fedaa017 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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