You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-18Lines changed: 20 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,7 @@ If you intend to use this application behind a subfolder reverse proxy, such as
71
71
Documentation for BookStack can be found at https://www.bookstackapp.com/docs/.
72
72
73
73
### BookStack File & Directory Paths
74
+
74
75
This container ensures certain BookStack application files & folders, such as user file upload folders, are retained within the `/config` folder so that they are persistent & accessible when the `/config` container path is bound as a volume. There may be cases, when following the BookStack documentation, that you'll need to know how these files and folders are used relative to a non-container BookStack installation.
75
76
76
77
Below is a mapping of container `/config` paths to those relative within a BookStack install directory:
@@ -85,6 +86,7 @@ Below is a mapping of container `/config` paths to those relative within a BookS
85
86
-`/config/www/uploads/` => `public/uploads/`
86
87
87
88
### Advanced Users (full control over the .env file)
89
+
88
90
If you wish to use the extra functionality of BookStack such as email, Memcache, LDAP and so on you will need to make your own .env file with guidance from the BookStack documentation.
89
91
90
92
When you create the container, do not set any arguments for any SQL settings. The container will copy an exemplary .env file to /config/www/.env on your host system for you to edit.
@@ -105,12 +107,12 @@ services:
105
107
- PUID=1000
106
108
- PGID=1000
107
109
- TZ=Etc/UTC
108
-
- APP_URL=yourbaseurl
109
-
- DB_HOST=yourdbhost
110
-
- DB_PORT=yourdbport
111
-
- DB_USERNAME=yourdbuser
112
-
- DB_PASSWORD=yourdbpass
113
-
- DB_DATABASE=bookstackapp
110
+
- APP_URL=
111
+
- DB_HOST=
112
+
- DB_PORT=3306
113
+
- DB_USERNAME=
114
+
- DB_PASSWORD=
115
+
- DB_DATABASE=
114
116
- QUEUE_CONNECTION= #optional
115
117
volumes:
116
118
- /path/to/bookstack/config:/config
@@ -127,12 +129,12 @@ docker run -d \
127
129
-e PUID=1000 \
128
130
-e PGID=1000 \
129
131
-e TZ=Etc/UTC \
130
-
-e APP_URL=yourbaseurl \
131
-
-e DB_HOST=yourdbhost \
132
-
-e DB_PORT=yourdbport \
133
-
-e DB_USERNAME=yourdbuser \
134
-
-e DB_PASSWORD=yourdbpass \
135
-
-e DB_DATABASE=bookstackapp \
132
+
-e APP_URL= \
133
+
-e DB_HOST= \
134
+
-e DB_PORT=3306 \
135
+
-e DB_USERNAME= \
136
+
-e DB_PASSWORD= \
137
+
-e DB_DATABASE= \
136
138
-e QUEUE_CONNECTION= `#optional` \
137
139
-p 6875:80 \
138
140
-v /path/to/bookstack/config:/config \
@@ -150,12 +152,12 @@ Containers are configured using parameters passed at runtime (such as those abov
150
152
|`-e PUID=1000`| for UserID - see below for explanation |
151
153
|`-e PGID=1000`| for GroupID - see below for explanation |
152
154
|`-e TZ=Etc/UTC`| specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). |
153
-
|`-e APP_URL=yourbaseurl`|for specifying the IP:port or URL your application will be accessed on (ie. `http://192.168.1.1:6875` or `https://bookstack.mydomain.com`|
154
-
|`-e DB_HOST=yourdbhost`|for specifying the database host|
155
-
|`-e DB_PORT=yourdbport`|for specifying the database port if not default 3306 |
156
-
|`-e DB_USERNAME=yourdbuser`|for specifying the database user |
157
-
|`-e DB_PASSWORD=yourdbpass`|for specifying the database password (minimum 4 characters & non-alphanumeric passwords must be properly escaped.) |
158
-
|`-e DB_DATABASE=bookstackapp`|for specifying the database to be used|
155
+
|`-e APP_URL=`|The IP:port or URL your application will be accessed on (ie. `http://192.168.1.1:6875` or `https://bookstack.mydomain.com`|
156
+
|`-e DB_HOST=`|The database instance hostname|
157
+
|`-e DB_PORT=3306`|Database port (default `3306`)|
158
+
|`-e DB_USERNAME=`|Database user |
159
+
|`-e DB_PASSWORD=`|Database password (minimum 4 characters & non-alphanumeric passwords must be properly escaped.) |
160
+
|`-e DB_DATABASE=`|Database name|
159
161
|`-e QUEUE_CONNECTION=`| Set to `database` to enable async actions like sending email or triggering webhooks. See [documentation](https://www.bookstackapp.com/docs/admin/email-webhooks/#async-action-handling). |
- { env_var: "APP_URL", env_value: "yourbaseurl", desc: "for specifying the IP:port or URL your application will be accessed on (ie. `http://192.168.1.1:6875` or `https://bookstack.mydomain.com`"}
- { env_var: "DB_PASSWORD", env_value: "yourdbpass", desc: "for specifying the database password (minimum 4 characters & non-alphanumeric passwords must be properly escaped.)" }
32
-
- { env_var: "DB_DATABASE", env_value: "bookstackapp", desc: "for specifying the database to be used" }
27
+
- { env_var: "APP_URL", env_value: "", desc: "The IP:port or URL your application will be accessed on (ie. `http://192.168.1.1:6875` or `https://bookstack.mydomain.com`"}
0 commit comments