kopia lustrzana https://github.com/linuxserver/docker-documentation
Bot Updating Documentation
rodzic
729a9d9480
commit
b20a4e08f7
|
@ -14,7 +14,6 @@ title: bookstack
|
|||
[](https://hub.docker.com/r/linuxserver/bookstack)
|
||||
[](https://hub.docker.com/r/linuxserver/bookstack)
|
||||
[](https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-bookstack/job/master/)
|
||||
[](https://ci-tests.linuxserver.io/linuxserver/bookstack/latest/index.html)
|
||||
|
||||
[Bookstack](https://github.com/BookStackApp/BookStack) is a free and open source Wiki designed for creating beautiful documentation. Featuring a simple, but powerful WYSIWYG editor it allows for teams to create detailed and useful documentation with ease.
|
||||
|
||||
|
@ -40,30 +39,39 @@ The architectures supported by this image are:
|
|||
|
||||
## Application Setup
|
||||
|
||||
The default username is admin@admin.com with the password of **password**, access the container at http://dockerhost:6875.
|
||||
The default username is admin@admin.com with the password of **password**, access the container at http://<host ip>:6875.
|
||||
|
||||
This application is dependent on a MySQL database be it one you already have or a new one. If you do not already have one, set up our MariaDB container here https://hub.docker.com/r/linuxserver/mariadb/.
|
||||
|
||||
|
||||
If you intend to use this application behind a subfolder reverse proxy, such as our SWAG container or Traefik you will need to make sure that the `APP_URL` environment variable is set to your external domain, or it will not work.
|
||||
|
||||
Documentation for BookStack can be found at https://www.bookstackapp.com/docs/.
|
||||
|
||||
### BookStack File & Directory Paths
|
||||
|
||||
This container ensures certain BookStack application files & folders, such as user file upload folders, are retained within the `/config` folder so that they are persistent & accessible when the `/config` container path is bound as a volume. There may be cases, when following the BookStack documentation, that you'll need to know how these files and folders are used relative to a non-container BookStack installation.
|
||||
|
||||
Below is a mapping of container `/config` paths to those relative within a BookStack install directory:
|
||||
|
||||
- **/config container path** => **BookStack relative path**
|
||||
- `/config/www/.env` => `.env`
|
||||
- `/config/www/laravel.log` => `storage/logs/laravel.log`
|
||||
- `/config/www/backups/` => `storage/backups/`
|
||||
- `/config/log/bookstack/laravel.log` => `storage/logs/laravel.log`
|
||||
- `/config/backups/` => `storage/backups/`
|
||||
- `/config/www/files/` => `storage/uploads/files/`
|
||||
- `/config/www/images/` => `storage/uploads/images/`
|
||||
- `/config/www/themes/` => `themes/`
|
||||
- `/config/www/uploads/` => `public/uploads/`
|
||||
|
||||
### Changing APP_URL
|
||||
|
||||
If you change the APP_URL after initial install, you should run the following line from your host terminal to update the database URL entries:
|
||||
|
||||
```shell
|
||||
docker exec -it bookstack php /app/www/artisan bookstack:update-url ${OLD_URL} ${NEW_URL}
|
||||
```
|
||||
|
||||
### Advanced Users (full control over the .env file)
|
||||
|
||||
If you wish to use the extra functionality of BookStack such as email, Memcache, LDAP and so on you will need to make your own .env file with guidance from the BookStack documentation.
|
||||
|
||||
When you create the container, do not set any arguments for any SQL settings. The container will copy an exemplary .env file to /config/www/.env on your host system for you to edit.
|
||||
|
@ -78,40 +86,24 @@ To help you get started creating a container from this image you can either use
|
|||
---
|
||||
services:
|
||||
bookstack:
|
||||
image: lscr.io/linuxserver/bookstack
|
||||
image: lscr.io/linuxserver/bookstack:latest
|
||||
container_name: bookstack
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=Europe/London
|
||||
- APP_URL=https://bookstack.example.com
|
||||
- DB_HOST=bookstack_db
|
||||
- TZ=Etc/UTC
|
||||
- APP_URL=
|
||||
- DB_HOST=
|
||||
- DB_PORT=3306
|
||||
- DB_USER=bookstack
|
||||
- DB_PASS=<yourdbpass>
|
||||
- DB_DATABASE=bookstackapp
|
||||
- DB_USERNAME=
|
||||
- DB_PASSWORD=
|
||||
- DB_DATABASE=
|
||||
- QUEUE_CONNECTION= #optional
|
||||
volumes:
|
||||
- /path/to/bookstack_app_data:/config
|
||||
- /path/to/bookstack/config:/config
|
||||
ports:
|
||||
- 6875:80
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- bookstack_db
|
||||
|
||||
bookstack_db:
|
||||
image: lscr.io/linuxserver/mariadb
|
||||
container_name: bookstack_db
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=Europe/London
|
||||
- MYSQL_ROOT_PASSWORD=<yourdbpass>
|
||||
- MYSQL_DATABASE=bookstackapp
|
||||
- MYSQL_USER=bookstack
|
||||
- MYSQL_PASSWORD=<yourdbpass>
|
||||
volumes:
|
||||
- /path/to/bookstack_db_data:/config
|
||||
restart: unless-stopped
|
||||
```
|
||||
|
||||
### docker cli ([click here for more info](https://docs.docker.com/engine/reference/commandline/cli/))
|
||||
|
@ -122,12 +114,12 @@ docker run -d \
|
|||
-e PUID=1000 \
|
||||
-e PGID=1000 \
|
||||
-e TZ=Etc/UTC \
|
||||
-e APP_URL=yourbaseurl \
|
||||
-e DB_HOST=yourdbhost \
|
||||
-e DB_PORT=yourdbport \
|
||||
-e DB_USER=yourdbuser \
|
||||
-e DB_PASS=yourdbpass \
|
||||
-e DB_DATABASE=bookstackapp \
|
||||
-e APP_URL= \
|
||||
-e DB_HOST= \
|
||||
-e DB_PORT=3306 \
|
||||
-e DB_USERNAME= \
|
||||
-e DB_PASSWORD= \
|
||||
-e DB_DATABASE= \
|
||||
-e QUEUE_CONNECTION= `#optional` \
|
||||
-p 6875:80 \
|
||||
-v /path/to/bookstack/config:/config \
|
||||
|
@ -152,12 +144,12 @@ Containers are configured using parameters passed at runtime (such as those abov
|
|||
| `PUID=1000` | for UserID - see below for explanation |
|
||||
| `PGID=1000` | for GroupID - see below for explanation |
|
||||
| `TZ=Etc/UTC` | specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). |
|
||||
| `APP_URL=yourbaseurl` | for specifying the IP:port or URL your application will be accessed on (ie. `http://192.168.1.1:6875` or `https://bookstack.mydomain.com` |
|
||||
| `DB_HOST=yourdbhost` | for specifying the database host |
|
||||
| `DB_PORT=yourdbport` | for specifying the database port if not default 3306 |
|
||||
| `DB_USER=yourdbuser` | for specifying the database user |
|
||||
| `DB_PASS=yourdbpass` | for specifying the database password (minimum 4 characters & non-alphanumeric passwords must be properly escaped.) |
|
||||
| `DB_DATABASE=bookstackapp` | for specifying the database to be used |
|
||||
| `APP_URL=` | The IP:port or URL your application will be accessed on (ie. `http://192.168.1.1:6875` or `https://bookstack.mydomain.com` |
|
||||
| `DB_HOST=` | The database instance hostname |
|
||||
| `DB_PORT=3306` | Database port (default `3306`) |
|
||||
| `DB_USERNAME=` | Database user |
|
||||
| `DB_PASSWORD=` | Database password (minimum 4 characters & non-alphanumeric passwords must be properly escaped.) |
|
||||
| `DB_DATABASE=` | Database name |
|
||||
| `QUEUE_CONNECTION=` | Set to `database` to enable async actions like sending email or triggering webhooks. See [documentation](https://www.bookstackapp.com/docs/admin/email-webhooks/#async-action-handling). |
|
||||
|
||||
### Volume Mappings (`-v`)
|
||||
|
@ -334,6 +326,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
|||
|
||||
## Versions
|
||||
|
||||
* **11.10.24:** - Default to environment config over .env file config.
|
||||
* **06.09.24:** - Add php-exif for reading image EXIF data.
|
||||
* **27.05.24:** - Rebase to Alpine 3.20. Existing users should update their nginx confs to avoid http2 deprecation warnings.
|
||||
* **25.01.24:** - Existing users should update: site-confs/default.conf - Cleanup default site conf.
|
||||
|
|
Ładowanie…
Reference in New Issue