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
The ARM variants can be built on x86_64 hardware using `multiarch/qemu-user-static`
109
-
```
109
+
110
+
```bash
110
111
docker run --rm --privileged multiarch/qemu-user-static:register --reset
111
112
```
112
113
113
114
Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64`.
114
115
115
-
## Update the chagelog
116
+
## Update the changelog
116
117
117
118
If you are modifying the Dockerfiles or any of the startup scripts in [root](https://github.com/linuxserver/docker-bookstack/tree/master/root), add an entry to the changelog
@@ -61,6 +61,27 @@ The architectures supported by this image are:
61
61
| arm64 | arm64v8-latest |
62
62
| armhf | arm32v7-latest |
63
63
64
+
## Application Setup
65
+
66
+
67
+
The default username is admin@admin.com with the password of **password**, access the container at http://dockerhost:6875.
68
+
69
+
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/.
70
+
71
+
72
+
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
73
+
74
+
Documentation for BookStack can be found at https://www.bookstackapp.com/docs/
75
+
76
+
### Advanced Users (full control over the .env file)
77
+
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.
78
+
79
+
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.
80
+
81
+
#### PDF Rendering
82
+
[wkhtmltopdf](https://wkhtmltopdf.org/) is available to use as an alternative PDF rendering generator as described at https://www.bookstackapp.com/docs/admin/pdf-rendering/.
83
+
84
+
The path to wkhtmltopdf in this image to include in your .env file is `/usr/bin/wkhtmltopdf`.
64
85
65
86
## Usage
66
87
@@ -111,7 +132,7 @@ services:
111
132
112
133
### docker cli
113
134
114
-
```
135
+
```bash
115
136
docker run -d \
116
137
--name=bookstack \
117
138
-e PUID=1000 \
@@ -127,7 +148,6 @@ docker run -d \
127
148
ghcr.io/linuxserver/bookstack
128
149
```
129
150
130
-
131
151
## Parameters
132
152
133
153
Container images are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate `<external>:<internal>` respectively. For example, `-p 8080:80` would expose port `80` from inside the container to be accessible from the host's IP on port `8080` outside the container.
@@ -150,7 +170,7 @@ You can set any environment variable from a file by using a special prepend `FIL
150
170
151
171
As an example:
152
172
153
-
```
173
+
```bash
154
174
-e FILE__PASSWORD=/run/secrets/mysecretpassword
155
175
```
156
176
@@ -169,42 +189,17 @@ Ensure any volume directories on the host are owned by the same user you specify
169
189
170
190
In this instance `PUID=1000` and `PGID=1000`, to find yours use `id user` as below:
The default username is admin@admin.com with the password of **password**, access the container at http://dockerhost:6875.
183
-
184
-
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/.
185
-
186
-
187
-
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
188
-
189
-
Documentation for BookStack can be found at https://www.bookstackapp.com/docs/
190
-
191
-
### Advanced Users (full control over the .env file)
192
-
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.
193
-
194
-
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.
195
-
196
-
#### PDF Rendering
197
-
[wkhtmltopdf](https://wkhtmltopdf.org/) is available to use as an alternative PDF rendering generator as described at https://www.bookstackapp.com/docs/admin/pdf-rendering/.
198
-
199
-
The path to wkhtmltopdf in this image to include in your .env file is `/usr/bin/wkhtmltopdf`.
200
-
201
-
202
197
## Docker Mods
198
+
203
199
[](https://mods.linuxserver.io/?mod=bookstack"view available mods for this container.")[](https://mods.linuxserver.io/?mod=universal"view available universal mods.")
204
200
205
201
We publish various [Docker Mods](https://github.com/linuxserver/docker-mods) to enable additional functionality within the containers. The list of Mods available for this image (if any) as well as universal mods that can be applied to any one of our images can be accessed via the dynamic badges above.
206
202
207
-
208
203
## Support Info
209
204
210
205
* Shell access whilst the container is running: `docker exec -it bookstack /bin/bash`
@@ -221,38 +216,45 @@ Most of our images are static, versioned, and require an image update and contai
221
216
Below are the instructions for updating containers:
222
217
223
218
### Via Docker Compose
219
+
224
220
* Update all images: `docker-compose pull`
225
221
* or update a single image: `docker-compose pull bookstack`
226
222
* Let compose update all containers as necessary: `docker-compose up -d`
227
223
* or update a single container: `docker-compose up -d bookstack`
228
224
* You can also remove the old dangling images: `docker image prune`
229
225
230
226
### Via Docker Run
227
+
231
228
* Update the image: `docker pull ghcr.io/linuxserver/bookstack`
232
229
* Stop the running container: `docker stop bookstack`
233
230
* Delete the container: `docker rm bookstack`
234
231
* Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your `/config` folder and settings will be preserved)
235
232
* You can also remove the old dangling images: `docker image prune`
236
233
237
234
### Via Watchtower auto-updater (only use if you don't remember the original parameters)
235
+
238
236
* Pull the latest image at its tag and replace it with the same env variables in one run:
239
-
```
237
+
238
+
```bash
240
239
docker run --rm \
241
240
-v /var/run/docker.sock:/var/run/docker.sock \
242
241
containrrr/watchtower \
243
242
--run-once bookstack
244
243
```
244
+
245
245
* You can also remove the old dangling images: `docker image prune`
246
246
247
247
**Note:** We do not endorse the use of Watchtower as a solution to automated updates of existing Docker containers. In fact we generally discourage automated updates. However, this is a useful tool for one-time manual updates of containers where you have forgotten the original parameters. In the long term, we highly recommend using [Docker Compose](https://docs.linuxserver.io/general/docker-compose).
* We recommend [Diun](https://crazymax.dev/diun/) for update notifications. Other tools that automatically update containers unattended are not recommended or supported.
251
252
252
253
## Building locally
253
254
254
255
If you want to make local modifications to these images for development purposes or just to customize the logic:
0 commit comments