diff --git a/docker-compose.yml b/docker-compose.yml index 241e73e..d3d6caf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,6 +12,13 @@ services: - db:/var/lib/postgresql/data/ restart: unless-stopped + inventree-cache: + container_name: inventree-cache + image: redis:7.0 + depends_on: + - inventree-db + restart: unless-stopped + inventree-server: container_name: inventree-server build: ./inventree-ldap @@ -34,6 +41,9 @@ services: INVENTREE_DB_NAME: "${POSTGRES_DB}" INVENTREE_DB_USER: "${POSTGRES_USER}" INVENTREE_DB_PASSWORD: "${POSTGRES_PASSWORD}" + + INVENTREE_CACHE_HOST: inventree-cache + INVENTREE_CACHE_PORT: 6379 restart: unless-stopped # Background worker process handles long-running or periodic tasks