Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5903de6

Browse files
committed
change default APP_URL value
1 parent 8a71bc8 commit 5903de6

File tree

1 file changed

+9
-38
lines changed

1 file changed

+9
-38
lines changed

‎README.md‎

Lines changed: 9 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -48,32 +48,6 @@ If you have any issues feel free to create an [issue on GitHub](https://github.c
4848

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

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-
7751
### Docker 1.9+
7852

7953
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.
10276
-e DB_DATABASE=bookstack \
10377
-e DB_USERNAME=bookstack \
10478
-e DB_PASSWORD=secret \
105-
-e APP_URL=http://example.com \
79+
-e APP_URL=http://localhost:8080 \
80+
-e APP_KEY=SomeRandomStringWith32Characters \
10681
-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
10984
```
11085

11186
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:
11388

114-
`APP_URL=http://example.com`
89+
`APP_URL=http://example.com` or `APP_URL=http://localhost:8080`.
11590

11691
The following environment variables are required for Bookstack to start:
11792
- `APP_KEY`
@@ -123,19 +98,15 @@ Networking changed in Docker v1.9, so you need to do one of the following steps.
12398

12499
### Volumes
125100

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:
129104

130105
```bash
131-
--mount type=bind,source=<HOST>/.env,target=/var/www/bookstack/.env \
132106
-v <HOST>:/var/www/bookstack/public/uploads \
133107
-v <HOST>:/var/www/bookstack/storage/uploads
134108
```
135109

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-
139110
After these steps you can visit [http://localhost:8080](http://localhost:8080).
140111
You can login with username `admin@admin.com` and password `password`.
141112

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /