Skip to content

Commit 5f0dbc0

Browse files
authored
Merge pull request #242 from linuxserver/be-unambiguous
2 parents 47165fc + 04589bb commit 5f0dbc0

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ The architectures supported by this image are:
6464

6565
The default username is [email protected] with the password of **password**, access the container at http://<host ip>:6875.
6666

67-
This application is dependent on a MySQL database be it one you already have or a new one. If you do not already have one, set up our MariaDB container here https://hub.docker.com/r/linuxserver/mariadb/.
67+
This application is dependent on a MariaDB database, be it one you already have or a new one. If you do not already have one, we provide an image here https://github.com/linuxserver/docker-mariadb.
6868

6969
If you intend to use this application behind a subfolder reverse proxy, such as our SWAG container or Traefik you will need to make sure that the `APP_URL` environment variable is set to your external domain, or it will not work.
7070

@@ -95,9 +95,9 @@ docker exec -it bookstack php /app/www/artisan bookstack:update-url ${OLD_URL} $
9595

9696
### Advanced Users (full control over the .env file)
9797

98-
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.
98+
If you wish to use the extra functionality of BookStack such as email, LDAP and so on you will need to set additional environment variables or make your own .env file with guidance from the BookStack documentation.
9999

100-
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.
100+
The container will copy an exemplary .env file to /config/www/.env on your host system for you to use.
101101

102102

103103
## Usage
@@ -159,14 +159,14 @@ Containers are configured using parameters passed at runtime (such as those abov
159159

160160
| Parameter | Function |
161161
| :----: | --- |
162-
| `-p 80` | will map the container's port 80 to port 6875 on the host |
162+
| `-p 80` | http/s web interface. |
163163
| `-e PUID=1000` | for UserID - see below for explanation |
164164
| `-e PGID=1000` | for GroupID - see below for explanation |
165165
| `-e TZ=Etc/UTC` | specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). |
166-
| `-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` |
167-
| `-e APP_KEY=` | Session encryption key. Can be generated with `docker run -it --rm --entrypoint /bin/bash lscr.io/linuxserver/bookstack:latest appkey` |
166+
| `-e APP_URL=` | The protocol, IP/URL, and port that your application will be accessed on (ie. `http://192.168.1.1:6875` or `https://bookstack.mydomain.com` |
167+
| `-e APP_KEY=` | Session encryption key. You will need to generate this with `docker run -it --rm --entrypoint /bin/bash lscr.io/linuxserver/bookstack:latest appkey` |
168168
| `-e DB_HOST=` | The database instance hostname |
169-
| `-e DB_PORT=3306` | Database port (default `3306`) |
169+
| `-e DB_PORT=3306` | Database port |
170170
| `-e DB_USERNAME=` | Database user |
171171
| `-e DB_PASSWORD=` | Database password (minimum 4 characters & non-alphanumeric passwords must be properly escaped.) |
172172
| `-e DB_DATABASE=` | Database name |

readme-vars.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ 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: "", 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: "APP_KEY", env_value: "", desc: "Session encryption key. Can be generated with `docker run -it --rm --entrypoint /bin/bash lscr.io/linuxserver/bookstack:latest appkey`"}
27+
- { env_var: "APP_URL", env_value: "", desc: "The protocol, IP/URL, and port that your application will be accessed on (ie. `http://192.168.1.1:6875` or `https://bookstack.mydomain.com`"}
28+
- { env_var: "APP_KEY", env_value: "", desc: "Session encryption key. You will need to generate this with `docker run -it --rm --entrypoint /bin/bash lscr.io/linuxserver/bookstack:latest appkey`"}
2929
- { env_var: "DB_HOST", env_value: "", desc: "The database instance hostname" }
30-
- { env_var: "DB_PORT", env_value: "3306", desc: "Database port (default `3306`)" }
30+
- { env_var: "DB_PORT", env_value: "3306", desc: "Database port" }
3131
- { env_var: "DB_USERNAME", env_value: "", desc: "Database user" }
3232
- { env_var: "DB_PASSWORD", env_value: "", desc: "Database password (minimum 4 characters & non-alphanumeric passwords must be properly escaped.)" }
3333
- { env_var: "DB_DATABASE", env_value: "", desc: "Database name" }
3434

3535
param_usage_include_ports: true
3636
param_ports:
37-
- { external_port: "6875", internal_port: "80", port_desc: "will map the container's port 80 to port 6875 on the host" }
37+
- { external_port: "6875", internal_port: "80", port_desc: "http/s web interface." }
3838

3939
opt_param_usage_include_env: true
4040
opt_param_env_vars:
@@ -46,7 +46,7 @@ app_setup_block: |
4646
4747
The default username is [email protected] with the password of **password**, access the container at http://<host ip>:6875.
4848
49-
This application is dependent on a MySQL database be it one you already have or a new one. If you do not already have one, set up our MariaDB container here https://hub.docker.com/r/linuxserver/mariadb/.
49+
This application is dependent on a MariaDB database, be it one you already have or a new one. If you do not already have one, we provide an image here https://github.com/linuxserver/docker-mariadb.
5050
5151
If you intend to use this application behind a subfolder reverse proxy, such as our SWAG container or Traefik you will need to make sure that the `APP_URL` environment variable is set to your external domain, or it will not work.
5252
@@ -77,9 +77,9 @@ app_setup_block: |
7777
7878
### Advanced Users (full control over the .env file)
7979
80-
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.
80+
If you wish to use the extra functionality of BookStack such as email, LDAP and so on you will need to set additional environment variables or make your own .env file with guidance from the BookStack documentation.
8181
82-
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.
82+
The container will copy an exemplary .env file to /config/www/.env on your host system for you to use.
8383
8484
# changelog
8585
changelogs:

root/etc/s6-overlay/s6-rc.d/init-bookstack-config/run

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ fi
4747
# Check for app key
4848
if [[ -z ${APP_KEY} ]]; then
4949
if ! grep -qE "APP_KEY=[0-9A-Za-z:+\/=]{1,}" /app/www/.env 2> /dev/null || grep -qE "APP_KEY=SomeRandomString" /app/www/.env 2> /dev/null; then
50-
echo "An application key is missing, halting init!"
50+
echo "The application key is missing, halting init!"
5151
echo "You can generate a key with: docker run -it --rm --entrypoint /bin/bash lscr.io/linuxserver/bookstack:latest appkey"
52+
echo "And apply it to the APP_KEY environment variable."
5253
sleep infinity
5354
fi
5455
fi

0 commit comments

Comments
 (0)