This commit is contained in:
Mike McFetridge
2026-07-20 13:32:23 -04:00
parent a25b2951ae
commit 11331023ca
2 changed files with 87 additions and 0 deletions
+52
View File
@@ -0,0 +1,52 @@
services:
db:
image: mariadb:11
container_name: bookstack-db
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: 3OSyIgZjyV4Tze
MYSQL_DATABASE: bookstack
MYSQL_USER: bookstack
MYSQL_PASSWORD: 3OSyIgZjyV4Tze
volumes:
# Persist database files
- /opt/Docker-Deployments/Bookstack/db:/var/lib/mysql
networks:
- internal
bookstack:
image: lscr.io/linuxserver/bookstack:latest
container_name: bookstack
restart: unless-stopped
depends_on:
- db
ports:
# Web interface
- "6875:80"
environment:
# Application URL (change to your domain for production)
- APP_URL=https://book.mikemcfetridge.com
# Session encryption key from the appkey command above
- APP_KEY=base64:k1BQQ5IB+TDD4XOmDtOdxupfvBECi+Z1Ay9C12/5YgA=
# Database connection
- DB_HOST=db
- DB_PORT=3306
- DB_DATABASE=bookstack
- DB_USERNAME=bookstack
- DB_PASSWORD=3OSyIgZjyV4Tze
# Timezone
- TZ=America/New_York
# User/group IDs for file permissions
- PUID=1000
- PGID=1000
volumes:
# Application configuration
- /opt/Docker-Deployments/Bookstack/config:/config
networks:
- external
- internal
networks:
internal:
external: true # Tells Compose not to create this network
external:
external: true # Tells Compose not to create this network