This commit is contained in:
aitzol 2023-04-18 17:17:27 +02:00
parent 3bb9646bc4
commit e6c9b21447
3 changed files with 8 additions and 10 deletions

View File

@ -1,4 +1,3 @@
# FROM alpine:3.14
FROM python:3-alpine FROM python:3-alpine
RUN apk add --no-cache --upgrade bash RUN apk add --no-cache --upgrade bash
@ -17,5 +16,5 @@ RUN set -e; \
pip install -r requirements.txt; \ pip install -r requirements.txt; \
apk del .build-deps; apk del .build-deps;
EXPOSE 80 8080 #EXPOSE 9090
ENTRYPOINT ["./start.sh"] ENTRYPOINT ["./start.sh"]

View File

@ -2,18 +2,14 @@ version: '3'
services: services:
ldap-python-webui: ldap-python-webui:
image: aitzol/ldap-webui:latest image: aitzol/ldap-webui:latest
network_mode : host
volumes: volumes:
- ./data:/data:rw - ./data:/data:rw
- ./settings.ini:/settings.ini - ./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:
- 9090:80 # - 9090:80
environment: environment:
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

View File

@ -1,2 +1,5 @@
#!/bin/bash #!/bin/bash
uwsgi --http :80 --enable-threads --wsgi-file app.py if [ ! -f /tmp/foo.txt ]; then
cp settings.ini.example settings.ini
fi
uwsgi --http :9090 --enable-threads --wsgi-file app.py