@@ -48,32 +48,6 @@ If you have any issues feel free to create an [issue on GitHub](https://github.c
48
48
49
49
Note that if you want to use LDAP, ` $ ` has to be escape like ` \$ ` , i.e. ` -e "LDAP_USER_FILTER"="(&(uid=\${user}))" `
50
50
51
- Networking changed in Docker v1.9, so you need to do one of the following steps.
52
-
53
- ### Docker < v1.9
54
-
55
- 1 . MySQL Container:
56
-
57
- ``` bash
58
- docker run -d \
59
- -p 3306:3306 \
60
- -e MYSQL_ROOT_PASSWORD=secret \
61
- -e MYSQL_DATABASE=bookstack \
62
- -e MYSQL_USER=bookstack \
63
- -e MYSQL_PASSWORD=secret \
64
- --name bookstack_db \
65
- mysql:9.2.0
66
- ```
67
-
68
- 2 . BookStack Container:
69
-
70
- ``` bash
71
- docker run -d --link bookstack_db_:mysql \
72
- -p 8080:8080 \
73
- --name bookstack_25.02.1 \
74
- solidnerd/bookstack:25.02.1
75
- ```
76
-
77
51
### Docker 1.9+
78
52
79
53
1 . Create a shared network:
@@ -102,16 +76,17 @@ Networking changed in Docker v1.9, so you need to do one of the following steps.
102
76
-e DB_DATABASE=bookstack \
103
77
-e DB_USERNAME=bookstack \
104
78
-e DB_PASSWORD=secret \
105
- -e APP_URL=http://example.com \
79
+ -e APP_URL=http://localhost:8080 \
80
+ -e APP_KEY=SomeRandomStringWith32Characters \
106
81
-p 8080:8080 \
107
- --name=" bookstack_25.02 .1" \
108
- solidnerd/bookstack:25.02 .1
82
+ --name=" bookstack_25.2 .1" \
83
+ solidnerd/bookstack:25.2 .1
109
84
```
110
85
111
86
The APP_URL parameter should be the base URL for your BookStack instance without
112
- a trailing slash. For example:
87
+ a trailing slash, but including any port numbers . For example:
113
88
114
- ` APP_URL=http://example.com `
89
+ ` APP_URL=http://example.com ` or ` APP_URL=http://localhost:8080 ` .
115
90
116
91
The following environment variables are required for Bookstack to start:
117
92
- ` APP_KEY `
@@ -123,19 +98,15 @@ Networking changed in Docker v1.9, so you need to do one of the following steps.
123
98
124
99
### Volumes
125
100
126
- To access your ` .env ` file and important bookstack folders on your host system
127
- change ` <HOST> ` in the following line to your host directory and add it then to
128
- your run command:
101
+ To access your important bookstack folders on your host system change ` <HOST> `
102
+ in the following line to your host directory and add it then to your run
103
+ command:
129
104
130
105
``` bash
131
- --mount type=bind,source=< HOST> /.env,target=/var/www/bookstack/.env \
132
106
-v < HOST> :/var/www/bookstack/public/uploads \
133
107
-v < HOST> :/var/www/bookstack/storage/uploads
134
108
```
135
109
136
- In case of a windows host machine the .env file has to be already created in the
137
- host directory otherwise a folder named .env will be created.
138
-
139
110
After these steps you can visit [ http://localhost:8080 ] ( http://localhost:8080 ) .
140
111
You can login with username ` admin@admin.com ` and password ` password ` .
141
112
0 commit comments