ee6467ad1c
* feat(actual-budget): change config to support local domain * feat(adguard): change config to support local domain * feat(autobrr): change config to support local domain * feat(barrage): change config to support local domain * feat(bazarr): change config to support local domain * feat(booksonic): change config to support local domain * feat(bookstack): change config to support local domain * feat(calibre-web): change config to support local domain * feat(chatgpt-ui): change config to support local domain * feat(chatpad): change config to support local domain * feat(code-server): change config to support local domain * feat(codex-docs): change config to support local domain * feat(dailytxt): change config to support local domain * feat(dashdot): change config to support local domain * feat(deemix): change config to support local domain * feat(deluge): change config to support local domain * feat(dokuwiki): change config to support local domain * feat(dozzle): change config to support local domain * feat(duplicati): change config to support local domain * feat(emulatorjs): change config to support local domain * feat(excalidraw): change config to support local domain * feat(filebrowser): change config to support local domain * feat(filestash): change config to support local domain * feat(firefly-iii): change config to support local domain * feat(fireshare): change config to support local domain * feat(flatnotes): change config to support local domain * feat(freshrss): change config to support local domain * feat(ghost): change config to support local domain * feat(gitea): change config to support local domain * feat(gotify): change config to support local domain * feat(gotosocial): change config to support local domain * feat(grafana): change config to support local domain * feat(grav): change config to support local domain * feat(grocy): change config to support local domain
62 lines
2.2 KiB
YAML
62 lines
2.2 KiB
YAML
version: "3.7"
|
|
services:
|
|
bookstack:
|
|
image: lscr.io/linuxserver/bookstack:23.05.20230503
|
|
container_name: bookstack
|
|
environment:
|
|
- APP_URL=${APP_PROTOCOL:-http}://${APP_DOMAIN}
|
|
- DB_HOST=bookstack-db
|
|
- DB_USERNAME=tipi
|
|
- DB_PASSWORD=${BOOKSTACK_DB_PASS}
|
|
- DB_DATABASE=bookstackapp
|
|
volumes:
|
|
- ${APP_DATA_DIR}/data/config:/config
|
|
dns:
|
|
- ${DNS_IP}
|
|
ports:
|
|
- ${APP_PORT}:80
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- bookstack-db
|
|
networks:
|
|
- tipi_main_network
|
|
labels:
|
|
# Main
|
|
traefik.enable: true
|
|
traefik.http.middlewares.bookstack-web-redirect.redirectscheme.scheme: https
|
|
traefik.http.services.bookstack.loadbalancer.server.port: 80
|
|
# Web
|
|
traefik.http.routers.bookstack-insecure.rule: Host(`${APP_DOMAIN}`)
|
|
traefik.http.routers.bookstack-insecure.entrypoints: web
|
|
traefik.http.routers.bookstack-insecure.service: bookstack
|
|
traefik.http.routers.bookstack-insecure.middlewares: bookstack-web-redirect
|
|
# Websecure
|
|
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
|
|
# Local domain
|
|
traefik.http.routers.bookstack-local-insecure.rule: Host(`bookstack.${LOCAL_DOMAIN}`)
|
|
traefik.http.routers.bookstack-local-insecure.entrypoints: web
|
|
traefik.http.routers.bookstack-local-insecure.service: bookstack
|
|
traefik.http.routers.bookstack-local-insecure.middlewares: bookstack-web-redirect
|
|
# Local domain secure
|
|
traefik.http.routers.bookstack-local.rule: Host(`bookstack.${LOCAL_DOMAIN}`)
|
|
traefik.http.routers.bookstack-local.entrypoints: websecure
|
|
traefik.http.routers.bookstack-local.service: bookstack
|
|
traefik.http.routers.bookstack-local.tls: true
|
|
|
|
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:
|
|
- tipi_main_network
|