Fixed bookstack.yaml

- Added APP_KEY as it was not defined and container was erroring out.
- Changed DB_USER and DB_PASS to the correct var's (DB_USERNAME and DB_PASSWORD)
- Changed healthcheck from wget to curl, as wget kept getting redirected to the external/local ip and failing instead of loading header from localhost 127.0.0.1.

Major props to Darren from the discord server for helping/doing all the work really. Just changing it here so others don't have to mess with it.
This commit is contained in:
Strider27
2024-10-20 17:52:38 +01:00
committed by GitHub
parent 5d62a46a16
commit 55d92e6913

View File

@@ -10,13 +10,14 @@ services:
environment:
- SERVICE_FQDN_BOOKSTACK_80
- APP_URL=${SERVICE_FQDN_BOOKSTACK}
- APP_KEY=${SERVICE_PASSWORD_APPKEY}
- PUID=1000
- PGID=1000
- TZ=${TZ:-Europe/Berlin}
- DB_HOST=mariadb
- DB_PORT=3306
- DB_USER=${SERVICE_USER_MYSQL}
- DB_PASS=${SERVICE_PASSWORD_MYSQL}
- DB_USERNAME=${SERVICE_USER_MYSQL}
- DB_PASSWORD=${SERVICE_PASSWORD_MYSQL}
- DB_DATABASE=${MYSQL_DATABASE:-bookstackapp}
- QUEUE_CONNECTION=${QUEUE_CONNECTION}
# You will need to set up an authentication provider as described at https://www.bookstackapp.com/docs/admin/third-party-auth/.
@@ -27,7 +28,7 @@ services:
healthcheck:
test:
- CMD-SHELL
- 'wget -qO- http://127.0.0.1:80/'
- 'curl -f http://127.0.0.1:80/'
interval: 5s
timeout: 20s
retries: 10