0% found this document useful (0 votes)
89 views1 page

Bookstack - Docker Compose

This document summarizes how to setup Bookstack, an open source wiki software, using Docker. It provides the Docker Compose configuration to run Bookstack in containers with MySQL for the database, and instructions on backing up the Bookstack data and files.

Uploaded by

Belén Cebrián
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
89 views1 page

Bookstack - Docker Compose

This document summarizes how to setup Bookstack, an open source wiki software, using Docker. It provides the Docker Compose configuration to run Bookstack in containers with MySQL for the database, and instructions on backing up the Bookstack data and files.

Uploaded by

Belén Cebrián
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Bookstack - Baerentsen.space https://webcache.googleusercontent.com/search?q=cache:-7-7WKHyE...

Esta es la versión en caché de https://baerentsen.space/bookstack/ de Google. Se trata de una captura de pantalla de la página tal como esta se mostraba el 9 Ene 2021 22:20:02 GMT. Es posible que la página haya sufrido modificaciones durante este tiempo. Más información.

Versión completa Versión de solo texto Ver origen


Sugerencia: para encontrar rápidamente tu término de búsqueda en esta página, pulsa Ctrl+F o ⌘-F (Mac) y utiliza la barra de búsqueda.

Baerentsen.space Posts Tags Categories Portfolio Projects

Bookstack
Frederik Bærentsen included in Programming Selfhosted
2018-10-19 183 words One minute

CONTENTS
Setup
Bookstack is one of the best selfhosted ‘wiki’ sites and it is dead easy to setup. Bookstack uses a mysql
container to store the data and a webcontainer to have the site on. I like to keep my sql containers
seperate and se we change the default port from 3306 to 3311 . This is just random, but i normally
start my sql containers at 3310 and then work my way up.

version: "3"

services:
bookstack_app:
container_name: bookstack_app
image: solidnerd/bookstack:latest
environment:
- DB_HOST=bookstack_db:3306
- DB_DATABASE=bookstack
- DB_USERNAME=bookstack
- DB_PASSWORD=<dbpassword>
volumes:
- ${PWD}/uploads:/var/www/bookstack/public/uploads
- ${PWD}/storage-uploads:/var/www/bookstack/public/storage
depends_on:
- bookstack_db
labels:
- "traefik.enable=true"
- "traefik.frontend.rule=Host:bookstack.domain.com"
bookstack_db:
container_name: bookstack_db
image: mysql:latest
ports:
- 3311:3306
environment:
- MYSQL_ROOT_PASSWORD=<rootpassword>
- MYSQL_DATABASE=bookstack
- MYSQL_USER=bookstack
- MYSQL_PASSWORD=<dbpassword>
volumes:
- ${PWD}/mysql:/var/lib/mysql
labels:
- "traefik.enable=false"

networks:
default:
external:
name: webproxy

# Backup
Bookstack just has the sql database and an upload and a storage folder. To back them up, i use a
modified script from my Portainer post.

#!/bin/bash
NOW=$(date +"%Y%m%d-%H%M")
CURPATH='/home/<username>/Backup/bookstack'
echo $(/bin/mkdir -p "$CURPATH/$NOW")
echo $(/usr/bin/rsync -av --delete /home/<username>/Docker/bookstack/mysql/ "$CURPATH/$NOW")
echo $(/usr/bin/rsync -av --delete /home/<username>/Docker/bookstack/uploads/ "$CURPATH/$NOW")
echo $(/usr/bin/rsync -av --delete /home/<username>/Docker/bookstack/storage-uploads/ "$CURPATH/$NOW")

Updated on 2018-10-19
Read Markdown

Docker, Bookstack, Docker-Compose Back | Home

Firefly III Wallabag

Powered by Hugo | Theme - LoveIt


2015 - 2020 Frederik Bærentsen | CC BY-NC 4.0

1 de 1 11/01/2021 20:53

You might also like