Add LDAP auth support to server/worker images
This commit is contained in:
parent
a57e4acafb
commit
739ba74051
@ -14,7 +14,7 @@ services:
|
|||||||
|
|
||||||
inventree-server:
|
inventree-server:
|
||||||
container_name: inventree-server
|
container_name: inventree-server
|
||||||
image: inventree/inventree:latest
|
build: ./inventree-ldap
|
||||||
expose:
|
expose:
|
||||||
- 8000
|
- 8000
|
||||||
depends_on:
|
depends_on:
|
||||||
@ -37,7 +37,7 @@ services:
|
|||||||
# Background worker process handles long-running or periodic tasks
|
# Background worker process handles long-running or periodic tasks
|
||||||
inventree-worker:
|
inventree-worker:
|
||||||
container_name: inventree-worker
|
container_name: inventree-worker
|
||||||
image: inventree/inventree:latest
|
build: ./inventree-ldap
|
||||||
command: invoke worker
|
command: invoke worker
|
||||||
depends_on:
|
depends_on:
|
||||||
- inventree-db
|
- inventree-db
|
||||||
|
5
inventree-ldap/Dockerfile
Normal file
5
inventree-ldap/Dockerfile
Normal 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
|
Loading…
Reference in New Issue
Block a user