Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
bookstack-npm-docker-compose
---
version: "2"
services:
bookstack:
image: lscr.io/linuxserver/bookstack
container_name: bookstack
environment:
- PUID=1000
- PGID=1000
- APP_URL=https://wiki.bookstackapp.com
- DB_HOST=bookstack_db
- DB_USER=bookstack
- DB_PASS=mydatabasepassword
- DB_DATABASE=bookstackapp
volumes:
- ./bookstack:/config
restart: unless-stopped
depends_on:
- bookstack_db
bookstack_db:
image: lscr.io/linuxserver/mariadb
container_name: bookstack_db
environment:
- PUID=1000
- PGID=1000
- MYSQL_ROOT_PASSWORD=mysecretrootpassword
- TZ=Europe/London
- MYSQL_DATABASE=bookstackapp
- MYSQL_USER=bookstack
- MYSQL_PASSWORD=mydatabasepassword
volumes:
- ./database:/config
restart: unless-stopped
proxy:
image: 'jc21/nginx-proxy-manager:latest'
restart: unless-stopped
ports:
# Public HTTP Port:
- '80:80'
# Public HTTPS Port:
- '443:443'
# Admin Web Port:
- '81:81'
environment:
# If you would rather use Sqlite uncomment this
# and remove all DB_MYSQL_* lines above
DB_SQLITE_FILE: "/data/database.sqlite"
# Uncomment this if IPv6 is not enabled on your host
# DISABLE_IPV6: 'true'
volumes:
- ./proxy/data:/data
- ./proxy/letsencrypt:/etc/letsencrypt
restart: unless-stopped
networks:
default:
external:
name: web
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment