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
RUN apk add --no-cache --upgrade bash
@ -17,5 +16,5 @@ RUN set -e; \
pip install -r requirements.txt; \
apk del .build-deps;
EXPOSE 80 8080
#EXPOSE 9090
ENTRYPOINT ["./start.sh"]

View File

@ -2,18 +2,14 @@ version: '3'
services:
ldap-python-webui:
image: aitzol/ldap-webui:latest
network_mode : host
volumes:
- ./data:/data:rw
- ./settings.ini:/settings.ini
# - ./certs:/container/service/slapd/assets/certs:rw
# - ./schema:/container/service/slapd/assets/config/bootstrap/schema/custom
ports:
- 9090:80
#ports:
# - 9090:80
environment:
LDAP_ADMIN_PASSWORD: "admin"
LDAP_READONLY_PASSWORD: "readonly"
networks:
default:
external: true
name: ldap-python-webui-docker_default

View File

@ -1,2 +1,5 @@
#!/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