add keeweb

This commit is contained in:
2025-07-26 17:20:03 +02:00
parent 194144120f
commit 1a8f4d6613
10 changed files with 147 additions and 0 deletions

View File

@ -0,0 +1,4 @@
# Keeweb
ProxyPass /keeweb http://keeweb retry=0 keepalive=On
ProxyPassReverse /keeweb http://keeweb retry=0

View File

@ -0,0 +1,13 @@
services:
# keeweb
# interface Web pour KeePass
# Port interne 80
keeweb:
image: reg.cadoles.com/envole/keeweb
container_name: nine-keeweb
restart: unless-stopped
env_file: ./services/50-keeweb/env/.env.merge
networks:
- nine-network
volumes:
- ./services/50-keeweb/volume/data:/web

5
services/50-keeweb/env/.env vendored Normal file
View File

@ -0,0 +1,5 @@
# == KEEWEB =================================================================================================================================
WEBDAV_USER=${ADMIN_USER}
WEBDAV_PASS=${ADMIN_PASSWORD}

View File

@ -0,0 +1,36 @@
#!/bin/bash
function upkeeweb {
if [[ $KEEWEB_ACTIVATE == 1 && $KEEWEB_LOCAL == 1 ]]
then
Title ${KEEWEB_SERVICE_NAME^^}
EchoVert "CONTAINER"
upservice ${KEEWEB_SERVICE_NAME}
chmod -R a+wr ./services/50-keeweb/volume/data
Echo
fi
}
function destroykeeweb {
if [[ $KEEWEB_LOCAL == 1 ]]
then
Title "DESTROY $KEEWEB_SERVICE_NAME"
stop $KEEWEB_SERVICE_NAME 1
docker-compose rm -s -v -f "$KEEWEB_SERVICE_NAME"
if [[ -z $1 ]]; then
Question_ouinon "Souhaitez-vous supprimer le volume associé à $KEEWEB_SERVICE_NAME ?";
response=$?
fi
if [[ "$response" == 0 || ! -z $1 ]]
then
EchoRouge "Delete Volume = $KEEWEB_SERVICE_NAME"
rm -rf services/50-keeweb/volume/data
fi
echo ""
fi
}