Use database dir for docker image

This commit is contained in:
Michel Roca 2021-05-21 22:01:42 +02:00
parent dee465ab86
commit 2535d4bb74
No known key found for this signature in database
GPG Key ID: BE192EC2B40ACD89
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,6 @@
"baseURL": "",
"address": "",
"log": "stdout",
"database": "/database.db",
"database": "/var/lib/filebrowser/database.db",
"root": "/srv"
}

View File

@ -9,6 +9,7 @@ HEALTHCHECK --start-period=2s --interval=5s --timeout=3s \
VOLUME /srv
EXPOSE 80
RUN mkdir /var/lib/filebrowser && chmod a+w /var/lib/filebrowser
COPY .docker.json /.filebrowser.json
COPY filebrowser /filebrowser