Skip to content

added appurl to config #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion READMETEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ docker create \
-e DB_USER=<yourdbuser> \
-e DB_PASS=<yourdbuser> \
-e DB_DATABASE=bookstackapp
-e "APP_URL=https://your.site.com" \
-p 6875:80 \
docker-bookstack
```
Expand All @@ -65,6 +66,7 @@ http://192.168.x.x:8080 would show you what's running INSIDE the container on po
| :---: | --- |
| `-p 6875:80` | will map the container's port 80 to port 6875 on the host |
| `-v /config` | this will store any uploaded data on the docker host |
| `-e APPURL` | this will set the app url, see below for explanation |
| `-e PGID` | for GroupID, see below for explanation |
| `-e PUID` | for UserID, see below for explanation |
| `-e DB_HOST` | for specifying the database host, see below for further explanation |
Expand Down Expand Up @@ -104,11 +106,13 @@ FLUSH PRIVILEGES;

Once you have completed these, you can then use the docker run command to create your BookStack container. Make sure you replace things such as <yourdbuser> with the correct data.

The appurl must be set to tell the application where it will be served from. If you are using https://books.mysite.io then APP_URL will need to be set to `-e "APP_URL=https://books.mysite.io"`

Then docker start bookstackapp to start the container. You should then be able to access the container at http://dockerhost:6875

Default username is admin@admin.com with password of **password**

Documentation can be found at https://www.bookstackapp.com/docs/
Documentation can be found at https://www.bookstackapp.com/docs/

## Container access and information.

Expand Down
2 changes: 2 additions & 0 deletions root/etc/cont-init.d/50-config
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ fi

# set up .env

sed - i "s/# APP_URL=http://bookstack.dev/APP_URL=${APP_URL}/g" /var/www/html/.env

sed -i "s/APP_KEY=SomeRandomString/APP_KEY=$key/g" /var/www/html/.env

sed -i "s/DB_HOST=localhost/DB_HOST=${DB_HOST}/g" /var/www/html/.env
Expand Down