Skip to content

Commit 448b168

Browse files
committed
Fix unhelpful default values
1 parent 4cb4610 commit 448b168

File tree

2 files changed

+26
-24
lines changed

2 files changed

+26
-24
lines changed

README.md

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ If you intend to use this application behind a subfolder reverse proxy, such as
7171
Documentation for BookStack can be found at https://www.bookstackapp.com/docs/.
7272

7373
### BookStack File & Directory Paths
74+
7475
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.
7576

7677
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
8586
- `/config/www/uploads/` => `public/uploads/`
8687

8788
### Advanced Users (full control over the .env file)
89+
8890
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.
8991

9092
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:
105107
- PUID=1000
106108
- PGID=1000
107109
- 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=
114116
- QUEUE_CONNECTION= #optional
115117
volumes:
116118
- /path/to/bookstack/config:/config
@@ -127,12 +129,12 @@ docker run -d \
127129
-e PUID=1000 \
128130
-e PGID=1000 \
129131
-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= \
136138
-e QUEUE_CONNECTION= `#optional` \
137139
-p 6875:80 \
138140
-v /path/to/bookstack/config:/config \
@@ -150,12 +152,12 @@ Containers are configured using parameters passed at runtime (such as those abov
150152
| `-e PUID=1000` | for UserID - see below for explanation |
151153
| `-e PGID=1000` | for GroupID - see below for explanation |
152154
| `-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 |
159161
| `-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). |
160162
| `-v /config` | Persistent config files |
161163

readme-vars.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ param_volumes:
2424
- { vol_path: "/config", vol_host_path: "/path/to/{{ project_name }}/config", desc: "Persistent config files" }
2525
param_usage_include_env: true
2626
param_env_vars:
27-
- { 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`"}
28-
- { env_var: "DB_HOST", env_value: "yourdbhost", desc: "for specifying the database host" }
29-
- { env_var: "DB_PORT", env_value: "yourdbport", desc: "for specifying the database port if not default 3306" }
30-
- { env_var: "DB_USERNAME", env_value: "yourdbuser", desc: "for specifying the database user" }
31-
- { 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`"}
28+
- { env_var: "DB_HOST", env_value: "", desc: "The database instance hostname" }
29+
- { env_var: "DB_PORT", env_value: "3306", desc: "Database port (default `3306`)" }
30+
- { env_var: "DB_USERNAME", env_value: "", desc: "Database user" }
31+
- { env_var: "DB_PASSWORD", env_value: "", desc: "Database password (minimum 4 characters & non-alphanumeric passwords must be properly escaped.)" }
32+
- { env_var: "DB_DATABASE", env_value: "", desc: "Database name" }
3333

3434
param_usage_include_ports: true
3535
param_ports:

0 commit comments

Comments
 (0)