docker
This commit is contained in:
parent
50464d5247
commit
5221f1b826
15
7
Normal file
15
7
Normal 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
26
Dockerfile
Normal 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
16
docker-compose.yaml
Normal 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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user