Skip to content

Commit 9f6cbce

Browse files
authored
Merge pull request #417 from solidnerd/rjh_general
Update and generally tidy the README
2 parents 220d107 + 5e3a221 commit 9f6cbce

File tree

1 file changed

+76
-62
lines changed

1 file changed

+76
-62
lines changed

README.md

+76-62
Original file line numberDiff line numberDiff line change
@@ -1,111 +1,125 @@
1-
## Docker Image For [BookStack](https://github.com/ssddanbrown/BookStack)
1+
# Docker Image For [BookStack](https://github.com/ssddanbrown/BookStack)
22

3-
[![Build Status](https://travis-ci.org/solidnerd/docker-bookstack.svg?branch=master)](https://travis-ci.org/solidnerd/docker-bookstack) [![](https://images.microbadger.com/badges/image/solidnerd/bookstack.svg)](https://microbadger.com/images/solidnerd/bookstack "Get your own image badge on microbadger.com") [![](https://images.microbadger.com/badges/commit/solidnerd/bookstack.svg)](https://microbadger.com/images/solidnerd/bookstack "Get your own commit badge on microbadger.com") [![](https://images.microbadger.com/badges/version/solidnerd/bookstack.svg)](https://microbadger.com/images/solidnerd/bookstack "Get your own version badge on microbadger.com") [![](https://images.microbadger.com/badges/license/solidnerd/bookstack.svg)](https://microbadger.com/images/solidnerd/bookstack "Get your own license badge on microbadger.com")
3+
![Build Status](https://img.shields.io/github/actions/workflow/status/solidnerd/docker-bookstack/master.yml)
4+
![Latest release](https://img.shields.io/github/v/tag/solidnerd/docker-bookstack?label=Latest%20release)
5+
![GitHub contributors](https://img.shields.io/github/contributors/solidnerd/docker-bookstack)
46

5-
## Current Version: [23.6.1](https://github.com/SolidNerd/docker-bookstack/blob/master/Dockerfile)
6-
7-
### Changes
7+
## Changes
88

99
The version 23.6.0 is broken due to a bad `.env` configuration created by the
1010
entrypoint script. This is fixed in version 23.6.1.
1111

12-
In 0.28.0 we changed the container http port from 80 to 8080 to allow root privileges to be dropped
12+
In 0.28.0 we changed the container http port from 80 to 8080 to allow root
13+
privileges to be dropped
1314

14-
In 0.12.2 we removed `DB_PORT` . You can now specify the port via `DB_HOST` like `DB_HOST=mysql:3306`
15+
In 0.12.2 we removed `DB_PORT` . You can now specify the port via `DB_HOST` like
16+
`DB_HOST=mysql:3306`
1517

16-
### Quickstart
18+
## Quickstart
1719

1820
With Docker Compose is a Quickstart very easy. Run the following command:
1921

20-
```
22+
```bash
2123
docker-compose up
2224
```
2325

24-
and after that open your Browser and go to [http://localhost:8080](http://localhost:8080) . You can login with username '[email protected]' and password 'password'.
26+
and after that open your Browser and go to
27+
[http://localhost:8080](http://localhost:8080) . You can login with username
28+
`[email protected]` and password `password`.
2529

26-
### Issues
30+
## Issues
2731

2832
If you have any issues feel free to create an [issue on GitHub](https://github.com/solidnerd/docker-bookstack/issues).
2933

30-
31-
### How to use the Image without Docker compose
34+
## How to use the Image without Docker compose
3235

3336
Note that if you want to use LDAP, `$` has to be escape like `\$`, i.e. `-e "LDAP_USER_FILTER"="(&(uid=\${user}))"`
3437

3538
Networking changed in Docker v1.9, so you need to do one of the following steps.
3639

37-
#### Docker < v1.9
40+
### Docker < v1.9
3841

3942
1. MySQL Container:
4043

41-
```bash
42-
docker run -d \
43-
-p 3306:3306 \
44-
-e MYSQL_ROOT_PASSWORD=secret \
45-
-e MYSQL_DATABASE=bookstack \
46-
-e MYSQL_USER=bookstack \
47-
-e MYSQL_PASSWORD=secret \
48-
--name bookstack_db \
49-
mysql:5.7.21
50-
```
44+
```bash
45+
docker run -d \
46+
-p 3306:3306 \
47+
-e MYSQL_ROOT_PASSWORD=secret \
48+
-e MYSQL_DATABASE=bookstack \
49+
-e MYSQL_USER=bookstack \
50+
-e MYSQL_PASSWORD=secret \
51+
--name bookstack_db \
52+
mysql:5.7.21
53+
```
54+
5155
2. BookStack Container:
5256

53-
```bash
54-
docker run -d --link bookstack_db_:mysql \
55-
-p 8080:8080 \
56-
--name bookstack_23.6.1 \
57-
solidnerd/bookstack:23.6.1
58-
```
57+
```bash
58+
docker run -d --link bookstack_db_:mysql \
59+
-p 8080:8080 \
60+
--name bookstack_23.6.1 \
61+
solidnerd/bookstack:23.6.1
62+
```
5963

60-
#### Docker 1.9+
64+
### Docker 1.9+
6165

6266
1. Create a shared network:
6367

64-
```bash
65-
docker network create bookstack_nw
66-
```
68+
```bash
69+
docker network create bookstack_nw
70+
```
6771

6872
2. Run MySQL container :
6973

70-
```bash
71-
docker run -d --net bookstack_nw \
72-
-e MYSQL_ROOT_PASSWORD=secret \
73-
-e MYSQL_DATABASE=bookstack \
74-
-e MYSQL_USER=bookstack \
75-
-e MYSQL_PASSWORD=secret \
76-
--name="bookstack_db" \
77-
mysql:5.7.21
78-
```
74+
```bash
75+
docker run -d --net bookstack_nw \
76+
-e MYSQL_ROOT_PASSWORD=secret \
77+
-e MYSQL_DATABASE=bookstack \
78+
-e MYSQL_USER=bookstack \
79+
-e MYSQL_PASSWORD=secret \
80+
--name="bookstack_db" \
81+
mysql:5.7.21
82+
```
7983

8084
3. Run BookStack Container
8185

82-
```bash
83-
docker run -d --net bookstack_nw \
84-
-e DB_HOST=bookstack_db:3306 \
85-
-e DB_DATABASE=bookstack \
86-
-e DB_USERNAME=bookstack \
87-
-e DB_PASSWORD=secret \
88-
-e APP_URL=http://example.com \
89-
-p 8080:8080 \
90-
--name="bookstack_23.6.1" \
91-
solidnerd/bookstack:23.6.1
92-
```
86+
```bash
87+
docker run -d --net bookstack_nw \
88+
-e DB_HOST=bookstack_db:3306 \
89+
-e DB_DATABASE=bookstack \
90+
-e DB_USERNAME=bookstack \
91+
-e DB_PASSWORD=secret \
92+
-e APP_URL=http://example.com \
93+
-p 8080:8080 \
94+
--name="bookstack_23.6.1" \
95+
solidnerd/bookstack:23.6.1
96+
```
97+
98+
The APP_URL parameter should be the base URL for your BookStack instance without
99+
a trailing slash. For example:
93100

94-
The APP_URL parameter should be the base URL for your BookStack instance without a trailing slash. For example:
95-
APP_URL=http://example.com
101+
`APP_URL=http://example.com`
96102

97-
#### Volumes
98-
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:
103+
### Volumes
104+
105+
To access your `.env` file and important bookstack folders on your host system
106+
change `<HOST>` in the following line to your host directory and add it then to
107+
your run command:
99108

100109
```bash
101110
--mount type=bind,source=<HOST>/.env,target=/var/www/bookstack/.env \
102111
-v <HOST>:/var/www/bookstack/public/uploads \
103112
-v <HOST>:/var/www/bookstack/storage/uploads
104113
```
105-
In case of a windows host machine the .env file has to be already created in the host directory otherwise a folder named .env will be created.
106114

107-
After these steps you can visit [http://localhost:8080](http://localhost:8080) . You can login with username '[email protected]' and password 'password'.
115+
In case of a windows host machine the .env file has to be already created in the
116+
host directory otherwise a folder named .env will be created.
117+
118+
After these steps you can visit [http://localhost:8080](http://localhost:8080) .
119+
You can login with username `[email protected]` and password `password`.
108120

109-
### Inspiration
121+
## Inspiration
110122

111-
This is a fork of [Kilhog/docker-bookstack](https://github.com/Kilhog/docker-bookstack). Kilhog did the intial work, but I want to go in a different direction.
123+
This is a fork of
124+
[Kilhog/docker-bookstack](https://github.com/Kilhog/docker-bookstack). Kilhog
125+
did the intial work, but I want to go in a different direction.

0 commit comments

Comments
 (0)