2023-05-17 19:18:29 +00:00
|
|
|
version: '3.7'
|
2022-08-29 19:26:46 +00:00
|
|
|
services:
|
|
|
|
bookstack:
|
2023-05-03 17:57:12 +00:00
|
|
|
image: lscr.io/linuxserver/bookstack:23.05.20230503
|
2022-08-29 19:26:46 +00:00
|
|
|
container_name: bookstack
|
|
|
|
environment:
|
2023-05-17 19:18:29 +00:00
|
|
|
- APP_URL=${APP_PROTOCOL:-http}://${APP_DOMAIN}
|
2022-08-29 20:21:34 +00:00
|
|
|
- DB_HOST=bookstack-db
|
|
|
|
- DB_USERNAME=tipi
|
|
|
|
- DB_PASSWORD=${BOOKSTACK_DB_PASS}
|
2022-08-29 19:26:46 +00:00
|
|
|
- DB_DATABASE=bookstackapp
|
|
|
|
volumes:
|
|
|
|
- ${APP_DATA_DIR}/data/config:/config
|
2022-08-29 19:32:25 +00:00
|
|
|
dns:
|
|
|
|
- ${DNS_IP}
|
2022-08-29 19:26:46 +00:00
|
|
|
ports:
|
|
|
|
- ${APP_PORT}:80
|
|
|
|
restart: unless-stopped
|
|
|
|
depends_on:
|
|
|
|
- bookstack-db
|
|
|
|
networks:
|
|
|
|
- tipi_main_network
|
2022-11-11 19:33:58 +00:00
|
|
|
labels:
|
|
|
|
traefik.enable: ${APP_EXPOSED}
|
|
|
|
traefik.http.routers.bookstack.rule: Host(`${APP_DOMAIN}`)
|
|
|
|
traefik.http.routers.bookstack.entrypoints: websecure
|
|
|
|
traefik.http.routers.bookstack.service: bookstack
|
|
|
|
traefik.http.routers.bookstack.tls.certresolver: myresolver
|
|
|
|
traefik.http.services.bookstack.loadbalancer.server.port: 80
|
2022-08-29 19:26:46 +00:00
|
|
|
|
|
|
|
bookstack-db:
|
|
|
|
image: lscr.io/linuxserver/mariadb
|
|
|
|
container_name: bookstack-db
|
|
|
|
environment:
|
|
|
|
- TZ=${TZ}
|
|
|
|
- MYSQL_DATABASE=bookstackapp
|
|
|
|
- MYSQL_USER=tipi
|
|
|
|
- MYSQL_PASSWORD=${BOOKSTACK_DB_PASS}
|
|
|
|
volumes:
|
|
|
|
- ${APP_DATA_DIR}/data/db:/config
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
2023-05-17 19:18:29 +00:00
|
|
|
- tipi_main_network
|