redisigned bookstack compose

This commit is contained in:
Maksym Buz
2025-02-03 21:15:56 +01:00
committed by GitHub
parent d146290195
commit 6f3936813b
2 changed files with 12 additions and 17 deletions

View File

@@ -1,14 +1,14 @@
# Password for bookstack MySQL user # Password for bookstack MySQL user
DB_PASS=<your_strong_pass> DB_USER_PASS=<your_strong_pass>
# Password for root MySQL user # Password for root MySQL user
DB_ROOT_PASS=<your_strongest_pass> DB_ROOT_PASS=<your_strongest_pass>
# Directory, where the bookstack itself will store the files # Directory, where the bookstack itself will store the files
CONFIG_PATH=/path/to/bookstack/config PATH_TO_CONFIG=/path/to/bookstack/config
# Directory, where MySQL data will be stored # Directory, where MySQL data will be stored
DB_DATA=/path/to/db/data PATH_TO_DB=/path/to/db/data
# Your timezone # Your timezone
TZ=Europe/Warsaw TZ=Europe/Warsaw

View File

@@ -1,5 +1,3 @@
---
version: "2"
services: services:
bookstack: bookstack:
image: lscr.io/linuxserver/bookstack image: lscr.io/linuxserver/bookstack
@@ -11,20 +9,19 @@ services:
- DB_HOST=bookstack_db - DB_HOST=bookstack_db
- DB_PORT=3306 - DB_PORT=3306
- DB_USER=bookstack - DB_USER=bookstack
- DB_PASS=${DB_PASS} - DB_PASS=${DB_USER_PASS}
- DB_DATABASE=bookstackapp - DB_DATABASE=bookstackapp
volumes: volumes:
- ${CONFIG_PATH}:/config - ${PATH_TO_CONFIG}:/config
ports: ports:
- 6875:80 - 6875:80
restart: unless-stopped restart: unless-stopped
env_file:
- stack.env
depends_on: depends_on:
- bookstack_db - bookstack_database
bookstack_db:
bookstack_database:
image: lscr.io/linuxserver/mariadb image: lscr.io/linuxserver/mariadb
container_name: bookstack_db container_name: bookstack_database
environment: environment:
- PUID=1000 - PUID=1000
- PGID=1000 - PGID=1000
@@ -32,9 +29,7 @@ services:
- TZ=${TZ} - TZ=${TZ}
- MYSQL_DATABASE=bookstackapp - MYSQL_DATABASE=bookstackapp
- MYSQL_USER=bookstack - MYSQL_USER=bookstack
- MYSQL_PASSWORD=${DB_PASS} - MYSQL_PASSWORD=${DB_USER_PASS}
volumes: volumes:
- ${DB_DATA}:/config - ${PATH_TO_DB}:/config
restart: unless-stopped restart: unless-stopped
env_file:
- stack.env