Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4611ab7

Browse files
authored
Add APP_URL to dockercompose and README.md (#292)
* add APP_URL and description * added APP_URL to the examples and add description
1 parent 82d19f7 commit 4611ab7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

‎README.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,15 @@ docker run -d --net bookstack_nw \
8181
-e DB_DATABASE=bookstack \
8282
-e DB_USERNAME=bookstack \
8383
-e DB_PASSWORD=secret \
84+
-e APP_URL=http://example.com \
8485
-p 8080:8080 \
8586
--name="bookstack_21.12" \
8687
solidnerd/bookstack:21.12
8788
```
8889

90+
The APP_URL parameter should be the base URL for your BookStack instance without a trailing slash. For example:
91+
APP_URL=http://example.com
92+
8993
#### Volumes
9094
To access your `.env` file and important bookstack folders on your host system change `<HOST>` in the following line to your host directory and add it then to your run command:
9195

‎docker-compose.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ services:
1919
- DB_DATABASE=bookstack
2020
- DB_USERNAME=bookstack
2121
- DB_PASSWORD=secret
22+
#set the APP_ to the URL of bookstack without without a trailing slash APP_URL=https://example.com
23+
- APP_URL=http://example.com
2224
volumes:
2325
- uploads:/var/www/bookstack/public/uploads
2426
- storage-uploads:/var/www/bookstack/storage/uploads

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /