feat: use linuxserver based docker image

This commit is contained in:
Oleg Lobanov 2021-12-15 10:58:47 +01:00
parent a078f0b787
commit b8f35ce932
No known key found for this signature in database
GPG key ID: 7CC64E41212621B0
9 changed files with 68 additions and 17 deletions

View file

@ -0,0 +1,8 @@
{
"port": 80,
"baseURL": "",
"address": "",
"log": "stdout",
"database": "/database.db",
"root": "/srv"
}

View file

@ -0,0 +1,15 @@
#!/usr/bin/with-contenv bash
# make folders
mkdir -p /database
# copy config
if [ ! -f "/config/settings.json" ]; then
cp -a /defaults/settings.json /config/settings.json
fi
# permissions
chown abc:abc \
/config/settings.json \
/database \
/srv

View file

@ -0,0 +1,3 @@
#!/usr/bin/with-contenv bash
exec s6-setuidgid abc filebrowser -c /config/settings.json -d /database/filebrowser.db;