Skip to main content

BookStack

BookStack是一个私人笔记书架,能够很好的容纳自己的知识要点。本站就是使用BookStack创建的。


version: "2"

services:

  bookstack:
    image: linuxserver/bookstack
    container_name: bookstack
    environment:
      - PUID=1000
      - PGID=1000
      - DB_HOST=bookstack_db
      - DB_USER=bookstack
      - DB_PASS=<your_password_here>
      - DB_DATABASE=bookstackapp
      - APP_URL=<your_final_url>
    volumes:
      - ./mnt/data:/config
    ports:
      - 15087:80
    restart: unless-stopped
    depends_on:
      - bookstack_db

  bookstack_db:
    image: linuxserver/mariadb
    container_name: bookstack_db
    environment:
      - PUID=1000
      - PGID=1000
      - MYSQL_ROOT_PASSWORD=<your_password_here>
      - TZ=Asia/Shanghai
      - MYSQL_DATABASE=bookstackapp
      - MYSQL_USER=bookstack
      - MYSQL_PASSWORD=<your_password_here>
    volumes:
      - ./mnt/data:/config
    restart: unless-stopped