Skip to content

Instantly share code, notes, and snippets.

@dnburgess
Created September 29, 2020 17:38
Show Gist options
  • Save dnburgess/65bd4e11f0398cdff8330f9490769366 to your computer and use it in GitHub Desktop.
Save dnburgess/65bd4e11f0398cdff8330f9490769366 to your computer and use it in GitHub Desktop.
DB Tech Bookstack Swarm
---
version: "3"
services:
bookstack:
image: linuxserver/bookstack
deploy:
replicas: 1
update_config:
parallelism: 4
delay: 5s
restart_policy:
condition: on-failure
environment:
- PUID=1000
- PGID=1000
- DB_HOST=bookstack_db
- DB_USER=bookstack
- DB_PASS=yourdbpass
- DB_DATABASE=bookstackapp
volumes:
- bookstack:/config
ports:
- 6875:80
restart: unless-stopped
depends_on:
- bookstack_db
bookstack_db:
image: linuxserver/mariadb
deploy:
replicas: 1
update_config:
parallelism: 4
delay: 5s
restart_policy:
condition: on-failure
environment:
- PUID=1000
- PGID=1000
- MYSQL_ROOT_PASSWORD=yourdbpass
- TZ=America/Denver
- MYSQL_DATABASE=bookstackapp
- MYSQL_USER=bookstack
- MYSQL_PASSWORD=yourdbpass
volumes:
- bookstackdb:/config
restart: unless-stopped
volumes:
bookstack:
bookstackdb:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment