Add LDAP auth support to server/worker images

This commit is contained in:
Adam Goldsmith 2023-03-30 01:32:29 -04:00
parent a57e4acafb
commit 739ba74051
2 changed files with 7 additions and 2 deletions

View File

@ -14,7 +14,7 @@ services:
inventree-server:
container_name: inventree-server
image: inventree/inventree:latest
build: ./inventree-ldap
expose:
- 8000
depends_on:
@ -37,7 +37,7 @@ services:
# Background worker process handles long-running or periodic tasks
inventree-worker:
container_name: inventree-worker
image: inventree/inventree:latest
build: ./inventree-ldap
command: invoke worker
depends_on:
- inventree-db

View File

@ -0,0 +1,5 @@
FROM inventree/inventree:stable
RUN apt-get update && apt-get install -y build-essential libldap2-dev libsasl2-dev
RUN pip3 install --no-cache-dir --disable-pip-version-check python-ldap django-auth-ldap