47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
|
---
|
||
|
version: "2"
|
||
|
services:
|
||
|
bookstack:
|
||
|
image: linuxserver/bookstack
|
||
|
container_name: bookstack
|
||
|
environment:
|
||
|
- PUID=1000
|
||
|
- PGID=1000
|
||
|
- DB_HOST=bookstack_db
|
||
|
- DB_USER=bookstack
|
||
|
- DB_PASS=yourdbpass
|
||
|
- DB_DATABASE=bookstackapp
|
||
|
- APP_URL=https://docs.jafner.net
|
||
|
volumes:
|
||
|
- /home/joey/docker/bookstack/config:/config
|
||
|
restart: unless-stopped
|
||
|
depends_on:
|
||
|
- bookstack_db
|
||
|
networks:
|
||
|
- web
|
||
|
labels:
|
||
|
- "traefik.enable=true"
|
||
|
- "traefik.frontend.rule=Host:docs.jafner.net"
|
||
|
- "traefik.port=80"
|
||
|
- "traefik.docker.network=web"
|
||
|
bookstack_db:
|
||
|
image: linuxserver/mariadb
|
||
|
container_name: bookstack_db
|
||
|
environment:
|
||
|
- PUID=1000
|
||
|
- PGID=1000
|
||
|
- MYSQL_ROOT_PASSWORD=yourdbpass
|
||
|
- TZ=Europe/London
|
||
|
- MYSQL_DATABASE=bookstackapp
|
||
|
- MYSQL_USER=bookstack
|
||
|
- MYSQL_PASSWORD=yourdbpass
|
||
|
volumes:
|
||
|
- /home/joey/docker/bookstack/config_db:/config
|
||
|
restart: unless-stopped
|
||
|
networks:
|
||
|
- web
|
||
|
|
||
|
networks:
|
||
|
web:
|
||
|
external: true
|