docker
This commit is contained in:
parent
5221f1b826
commit
4f3d8f9ace
15
7
15
7
@ -1,15 +0,0 @@
|
|||||||
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"
|
|
||||||
|
|
||||||
|
|
@ -1,13 +1,12 @@
|
|||||||
# FROM alpine:3.14
|
# FROM alpine:3.14
|
||||||
FROM python:3-alpine
|
FROM python:3-alpine
|
||||||
#RUN apk add --no-cache bash build-base uwsgi python3-dev
|
|
||||||
RUN apk add --no-cache --upgrade bash
|
RUN apk add --no-cache --upgrade bash
|
||||||
RUN mkdir -p /www
|
RUN mkdir -p /www
|
||||||
WORKDIR /www
|
WORKDIR /www
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN cp settings.ini.example settings.ini
|
|
||||||
RUN chmod +x start.sh
|
RUN chmod +x start.sh
|
||||||
RUN set -e; \
|
RUN set -e; \
|
||||||
apk add --no-cache --virtual .build-deps \
|
apk add --no-cache --virtual .build-deps \
|
||||||
@ -18,9 +17,5 @@ RUN set -e; \
|
|||||||
pip install -r requirements.txt; \
|
pip install -r requirements.txt; \
|
||||||
apk del .build-deps;
|
apk del .build-deps;
|
||||||
|
|
||||||
#ENV LDAP_ADMIN_PASSWORD="admin"
|
|
||||||
#ENV LDAP_READONLY_PASSWORD="readonly"
|
|
||||||
|
|
||||||
EXPOSE 80 8080
|
EXPOSE 80 8080
|
||||||
#CMD ["./start.sh"]
|
|
||||||
ENTRYPOINT ["./start.sh"]
|
ENTRYPOINT ["./start.sh"]
|
||||||
|
@ -3,7 +3,8 @@ services:
|
|||||||
ldap-python-webui:
|
ldap-python-webui:
|
||||||
image: aitzol/ldap-webui:latest
|
image: aitzol/ldap-webui:latest
|
||||||
volumes:
|
volumes:
|
||||||
- ./settings.ini settings.ini
|
- ./data:/data:rw
|
||||||
|
- ./settings.ini:/settings.ini
|
||||||
# - ./certs:/container/service/slapd/assets/certs:rw
|
# - ./certs:/container/service/slapd/assets/certs:rw
|
||||||
# - ./schema:/container/service/slapd/assets/config/bootstrap/schema/custom
|
# - ./schema:/container/service/slapd/assets/config/bootstrap/schema/custom
|
||||||
ports:
|
ports:
|
||||||
@ -13,4 +14,7 @@ services:
|
|||||||
LDAP_ADMIN_PASSWORD: "admin"
|
LDAP_ADMIN_PASSWORD: "admin"
|
||||||
LDAP_READONLY_PASSWORD: "readonly"
|
LDAP_READONLY_PASSWORD: "readonly"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
default:
|
||||||
|
external: true
|
||||||
|
name: ldap-python-webui-docker_default
|
||||||
|
Loading…
Reference in New Issue
Block a user