summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 6 insertions, 4 deletions
diff --git a/README.md b/README.md
index 720f5c9..0dfb9d2 100644
--- a/README.md
+++ b/README.md
@@ -30,15 +30,17 @@ If you want to run it in a docker container a premade dockerfile is here for you
There is also a docker-compose.yml file for your reference in the /deployments/docker folder.
-The one thing about the docker container is you have to mount the volume
+There are two volumes you have to make for the container. First one for the database otherwise all data will be wiped upon container restart. You only should volume the database file so create the vollume with the directory below.
+
+`touch [your directory]/xssbook.db`
`-v [your directory]/xssbook.db:/data/xssbook.db`
-to make the database persistant. Finally, before running the container run
+You have to create the database file beforehand because otherwise docker will create a folder there instead, and then the program will crash when it tries to load a folder as a database.
-`touch [your directory]/xssbook.db`
+Finally, you have to make a volume to store custom user avatars and banners. Without this, this data too will be lost upon contaienr restart. To make the volume simply run this with your container.
-since docker will create a folder there otherwise and it won't work.
+`-v [another directory]:/data/public/image/custom`
**reverse proxy**