This commit is contained in:
aitzol 2023-04-17 05:26:22 +02:00
parent 50464d5247
commit 5221f1b826
4 changed files with 59 additions and 0 deletions

15
7 Normal file
View File

@ -0,0 +1,15 @@
version: '3'
services:
ldap-python-webui:
image: aitzol/ldap-webui:latest
volumes:
- settings.ini:rw
# - ./certs:/container/service/slapd/assets/certs:rw
# - ./schema:/container/service/slapd/assets/config/bootstrap/schema/custom
ports:
- 9090:80
environment:
LDAP_ADMIN_PASSWORD: "admin"
LDAP_READONLY_PASSWORD: "readonly"

26
Dockerfile Normal file
View File

@ -0,0 +1,26 @@
# FROM alpine:3.14
FROM python:3-alpine
#RUN apk add --no-cache bash build-base uwsgi python3-dev
RUN apk add --no-cache --upgrade bash
RUN mkdir -p /www
WORKDIR /www
COPY . .
RUN cp settings.ini.example settings.ini
RUN chmod +x start.sh
RUN set -e; \
apk add --no-cache --virtual .build-deps \
gcc \
libc-dev \
linux-headers \
; \
pip install -r requirements.txt; \
apk del .build-deps;
#ENV LDAP_ADMIN_PASSWORD="admin"
#ENV LDAP_READONLY_PASSWORD="readonly"
EXPOSE 80 8080
#CMD ["./start.sh"]
ENTRYPOINT ["./start.sh"]

16
docker-compose.yaml Normal file
View File

@ -0,0 +1,16 @@
version: '3'
services:
ldap-python-webui:
image: aitzol/ldap-webui:latest
volumes:
- ./settings.ini settings.ini
# - ./certs:/container/service/slapd/assets/certs:rw
# - ./schema:/container/service/slapd/assets/config/bootstrap/schema/custom
ports:
- 9090:80
environment:
LDAP_ADMIN_PASSWORD: "admin"
LDAP_READONLY_PASSWORD: "readonly"

2
start.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/bash
uwsgi --http :80 --enable-threads --wsgi-file app.py