53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
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
|