From e29ab8db71fcc68abf5286ce253e12f1d5f9e1f6 Mon Sep 17 00:00:00 2001 From: ig12 <38759204+ig12@users.noreply.github.com> Date: Mon, 3 Jan 2022 18:05:55 +0100 Subject: [PATCH 1/2] add APP_URL and description --- docker-compose.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 713357f7..4ce778b8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,6 +19,8 @@ services: - DB_DATABASE=bookstack - DB_USERNAME=bookstack - DB_PASSWORD=secret + #set the APP_ to the URL of bookstack without without a trailing slash APP_URL=https://example.com + - APP_URL=http://example.com volumes: - uploads:/var/www/bookstack/public/uploads - storage-uploads:/var/www/bookstack/storage/uploads From b7d64a8dd4bf2e15bb64685aa91de0dd025283ed Mon Sep 17 00:00:00 2001 From: ig12 <38759204+ig12@users.noreply.github.com> Date: Mon, 3 Jan 2022 18:10:09 +0100 Subject: [PATCH 2/2] added APP_URL to the examples and add description --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 84831b5b..711bf0ea 100644 --- a/README.md +++ b/README.md @@ -81,11 +81,15 @@ docker run -d --net bookstack_nw \ -e DB_DATABASE=bookstack \ -e DB_USERNAME=bookstack \ -e DB_PASSWORD=secret \ +-e APP_URL=http://example.com \ -p 8080:8080 \ --name="bookstack_21.12" \ solidnerd/bookstack:21.12 ``` +The APP_URL parameter should be the base URL for your BookStack instance without a trailing slash. For example: +APP_URL=http://example.com + #### Volumes To access your `.env` file and important bookstack folders on your host system change `` in the following line to your host directory and add it then to your run command: