Skip to content

Commit

Permalink
Fixed bookstack env variable template (#1168)
Browse files Browse the repository at this point in the history
* fix: fixed bookstack env variable template

* fix: add app_key envar
  • Loading branch information
akhfa authored Nov 9, 2024
1 parent 6389f87 commit 1f941fc
Showing 1 changed file with 20 additions and 8 deletions.
28 changes: 20 additions & 8 deletions public/v4/apps/bookstack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ services:
PUID: 1000
MYSQL_ROOT_PASSWORD: $$cap_DB_PASS
TZ: $$cap_timezone
MYSQL_DATABASE: bookstackapp
MYSQL_USER: bookstack
MYSQL_DATABASE: $$cap_database_name
MYSQL_USER: $$cap_database_user
MYSQL_PASSWORD: $$cap_DB_PASS
volumes:
- $$cap_appname-db-config:/config
Expand All @@ -19,33 +19,45 @@ services:
PUID: 1000
PGID: 1000
APP_URL: http://$$cap_appname.$$cap_root_domain
APP_KEY: $$cap_app_key
DB_HOST: srv-captain--$$cap_appname-db
DB_PORT: 3306
DB_USER: bookstack
DB_PASS: $$cap_DB_PASS
DB_DATABASE: bookstackapp
DB_USERNAME: $$cap_database_user
DB_PASSWORD: $$cap_DB_PASS
DB_DATABASE: $$cap_database_name
image: lscr.io/linuxserver/bookstack:$$cap_bookstack_version
restart: always
volumes:
- $$cap_appname-config:/config
caproverOneClickApp:
variables:
- id: $$cap_app_key
label: Bookstack application key
description: Generate bookstack session encryption key by running `docker run -it --rm --entrypoint /bin/bash lscr.io/linuxserver/bookstack:latest appkey` or using online generator on https://laravel-encryption-key-generator.vercel.app/
- id: $$cap_database_name
label: Database schema name
description: Database schema that will be use for the bookstack app
defaultValue: 'bookstackapp'
- id: $$cap_database_user
label: Database user name
description: Database user that will be use for the bookstack app
defaultValue: 'bookstack'
- label: Database Password
description: Password to connect to the database
defaultValue: $$cap_gen_random_hex(16)
id: $$cap_DB_PASS
- label: Timezone
description: This is the timezone for the application, find yours at https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
defaultValue: Europe/London
defaultValue: Etc/UTC
id: $$cap_timezone
- id: $$cap_bookstack_version
label: Version Tag
description: Check out their Docker page for the valid tags https://hub.docker.com/r/linuxserver/bookstack/tags
defaultValue: 'v23.10.4-ls118'
defaultValue: 'v24.10-ls172'
- id: $$cap_mariadb_version
label: MariaDB Version Tag
description: Check out their Docker page for the valid tags https://hub.docker.com/r/linuxserver/mariadb/tags
defaultValue: '10.11.5-r0-ls122'
defaultValue: '10.11.10-r0-ls161'
instructions:
start: |-
A platform to create documentation/wiki content built with PHP & Laravel.
Expand Down

0 comments on commit 1f941fc

Please sign in to comment.