From e258ffda38d9361f77b40203fd2c21c1ab6793cf Mon Sep 17 00:00:00 2001 From: MaximilianKohler Date: Sun, 13 Aug 2023 03:09:43 -0700 Subject: [PATCH] Update configuration docs (#1446) media uploads --- docs/docs/content/configuration.md | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/docs/docs/content/configuration.md b/docs/docs/content/configuration.md index c47d3dd9..8ca3a0aa 100644 --- a/docs/docs/content/configuration.md +++ b/docs/docs/content/configuration.md @@ -52,7 +52,11 @@ When configuring auth proxies and web application firewalls, use this table. ### Filesystem -When configuring `docker` volume mounts for using filesystem media uploads, you can follow either of two approaches. +When configuring `docker` volume mounts for using filesystem media uploads, you can follow either of two approaches. [The second option may be necessary if](https://github.com/knadh/listmonk/issues/1169#issuecomment-1674475945) your setup requires you to use `sudo` for docker commands. + +After making any changes you will need to run `sudo docker-compose stop ; sudo docker-compose up`. + +And under `https://listmonk.mysite.com/admin/settings` you put `/listmonk/uploads`. #### Using volumes @@ -77,8 +81,22 @@ volumes: #### Using bind mounts ```yml + app: volumes: - - /data/uploads:/listmonk/uploads + - ./path/on/your/host/:/path/inside/container +``` +Eg: +```yml + app: + volumes: + - ./data/uploads:/listmonk/uploads +``` +The files will be available inside `/data/uploads` directory on the host machine. + +To use the default `uploads` folder: +```yml + app: + volumes: + - ./listmonk/uploads:/listmonk/uploads ``` -The files will be available inside `/data/uploads` directory on the host machine.