- 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.
61 lines
1.8 KiB
YAML
61 lines
1.8 KiB
YAML
# documentation: https://www.bookstackapp.com/docs/
|
|
# slogan: BookStack is a simple, self-hosted, easy-to-use platform for organising and storing information
|
|
# tags: free-and-open-source,mfa,dark-light-themes,searchable,connected,simple-interface,diagramms,notes
|
|
# logo: svgs/bookstack.png
|
|
# port: 80
|
|
|
|
services:
|
|
bookstack:
|
|
image: lscr.io/linuxserver/bookstack:latest
|
|
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_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/.
|
|
- GITHUB_APP_ID=${GITHUB_APP_ID}
|
|
- GITHUB_APP_SECRET=${GITHUB_APP_SECRET}
|
|
volumes:
|
|
- 'bookstack-data:/config'
|
|
healthcheck:
|
|
test:
|
|
- CMD-SHELL
|
|
- 'curl -f http://127.0.0.1:80/'
|
|
interval: 5s
|
|
timeout: 20s
|
|
retries: 10
|
|
depends_on:
|
|
mariadb:
|
|
condition: service_healthy
|
|
|
|
mariadb:
|
|
image: lscr.io/linuxserver/mariadb:latest
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- TZ=${TZ:-Europe/Berlin}
|
|
- MYSQL_ROOT_PASSWORD=${SERVICE_PASSWORD_MYSQLROOT}
|
|
- MYSQL_DATABASE=${MYSQL_DATABASE:-bookstack}
|
|
- MYSQL_USER=${SERVICE_USER_MYSQL}
|
|
- MYSQL_PASSWORD=${SERVICE_PASSWORD_MYSQL}
|
|
volumes:
|
|
- 'bookstack-mariadb-data:/config'
|
|
healthcheck:
|
|
test:
|
|
- CMD
|
|
- mysqladmin
|
|
- ping
|
|
- '-h'
|
|
- 127.0.0.1
|
|
interval: 5s
|
|
timeout: 20s
|
|
retries: 10
|