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
+39-12Lines changed: 39 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -5,45 +5,64 @@
5
5
## Current Version: [0.29.3](https://github.com/SolidNerd/docker-bookstack/blob/master/Dockerfile)
6
6
7
7
### Changes
8
-
In 0.28.0 we changed the container http port from 80 to 8080 to allow root privileges to be dropped
8
+
9
+
In 0.28.0 we changed the container http port from 80 to 8080 to allow root privileges to be dropped
9
10
In 0.12.2 we removed `DB_PORT` . You can now specify the port via `DB_HOST` like `DB_HOST=mysql:3306`
10
11
11
12
### Quickstart
13
+
12
14
With Docker Compose is a Quickstart very easy. Run the following command:
13
15
14
16
```
15
17
docker-compose up
16
18
```
17
19
18
-
and after that open your Browser and go to [http://localhost:8080](http://localhost:8080) .
20
+
and after that open your Browser and go to [http://localhost:8080](http://localhost:8080) . You can login with username 'admin@admin.com' and password 'password'.
19
21
20
22
### Issues
21
23
22
24
If you have any issues feel free to create an [issue on GitHub](https://github.com/solidnerd/docker-bookstack/issues).
23
25
24
26
25
27
### How to use the Image without Docker compose
28
+
29
+
Note that if you want to use LDAP, `$` has to be escape like `\$`, i.e. `-e "LDAP_USER_FILTER"="(&(uid=\${user}))"`
30
+
26
31
Networking changed in Docker v1.9, so you need to do one of the following steps.
docker run --name my-bookstack -d --link bookstack-mysql:mysql -p 8080:8080 solidnerd/bookstack:0.29.3
50
+
docker run -d --link bookstack_db_:mysql \
51
+
-p 8080:8080 \
52
+
--name bookstack_0.29.3 \
53
+
solidnerd/bookstack:0.29.3
36
54
```
37
55
38
56
#### Docker 1.9+
39
57
40
-
1.Create a shared network:
58
+
1.Create a shared network:
41
59
42
60
```bash
43
61
docker network create bookstack_nw
44
62
```
45
63
46
-
2.MySQL container :
64
+
2. Run MySQL container :
65
+
47
66
```bash
48
67
docker run -d --net bookstack_nw \
49
68
-e MYSQL_ROOT_PASSWORD=secret \
@@ -54,22 +73,30 @@ docker run -d --net bookstack_nw \
54
73
mysql:5.7.21
55
74
```
56
75
57
-
58
-
3.Create BookStack Container
76
+
3. Run BookStack Container
59
77
60
78
```bash
61
-
docker run -d --net bookstack_nw \
79
+
docker run -d --net bookstack_nw \
62
80
-e DB_HOST=bookstack_db:3306 \
63
81
-e DB_DATABASE=bookstack \
64
82
-e DB_USERNAME=bookstack \
65
83
-e DB_PASSWORD=secret \
66
84
-p 8080:8080 \
67
-
solidnerd/bookstack:0.27.4-1
85
+
--name="bookstack_0.29.3" \
86
+
solidnerd/bookstack:0.29.3
68
87
```
69
88
70
-
After the steps you can visit [http://localhost:8080](http://localhost:8080) . You can login with username 'admin@admin.com' and password 'password'.
89
+
#### Volumes
90
+
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:
71
91
72
-
Note that if you want to use LDAP, `$` has to be escape like `\$`, i.e. `-e "LDAP_USER_FILTER"="(&(uid=\${user}))"`
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.
98
+
99
+
After these steps you can visit [http://localhost:8080](http://localhost:8080) . You can login with username 'admin@admin.com' and password 'password'.
0 commit comments