Commit d318a71a authored by Nick Busey's avatar Nick Busey

Adding bookstack

parent 4a2e873a
Pipeline #42344210 passed with stages
in 38 seconds
......@@ -45,6 +45,7 @@ If you have the latest version of Vagrant and Virtual Box setup you can demo thi
## Available Software
* [Bitwarden](https://bitwarden.com/) - Password and secrets manager via [bitwarden-rs](https://github.com/dani-garcia/bitwarden_rs)
* [BookStack](https://www.bookstackapp.com/) - Simple & Free Wiki Software
* [BulletNotes](https://gitlab.com/NickBusey/BulletNotes.git) - Note taking application
* [Darksky](http://darksky.net/) - Local weather reported via [darksky-influxdb](https://github.com/ErwinSteffens/darksky-influxdb)
* [Dasher](https://github.com/maddox/dasher) - Amazon Dash button support
......
......@@ -6,6 +6,7 @@ enable_tor: False
enable_apple_health_influx: False
enable_bitwarden: False
enable_bookstack: False
enable_bulletnotes: False
enable_darksky_influx: False
enable_dasher: False
......@@ -91,6 +92,7 @@ ldap_org_name: My Family
# Service List
services:
- bitwarden
- bookstack
- bulletnotes
- docs
- emby
......
---
- name: Make bookstack directory.
file:
path: "/var/homelabos/bookstack"
state: directory
- name: Copy bookstack docker-compose.yml file into place.
template:
src: docker-compose.bookstack.yml.j2
dest: /var/homelabos/bookstack/docker-compose.bookstack.yml
vars:
tor_domain: "{{ tor_http_domain_file.stdout if tor_http_domain is defined else '' }}"
- name: Configure bookstack systemd service.
template: src=bookstack.service dest=/etc/systemd/system/bookstack.service
- name: Start bookstack
systemd:
name: bookstack
enabled: "yes"
daemon-reload: "yes"
state: started
...
[Unit]
Description=HomelabOS bookstack Service
After=docker.service
Requires=docker.service
[Service]
TimeoutSec=infinity
Restart=always
RestartSec=3
ExecStartPre=/usr/bin/docker-compose -f /var/homelabos/bookstack/docker-compose.bookstack.yml -p bookstack down
ExecStart=/usr/bin/docker-compose -f /var/homelabos/bookstack/docker-compose.bookstack.yml -p bookstack up
ExecStop=/usr/bin/docker-compose -f /var/homelabos/bookstack/docker-compose.bookstack.yml -p bookstack stop
[Install]
WantedBy=multi-user.target
\ No newline at end of file
---
version: '3'
networks:
traefik_network:
external:
name: homelabos_traefik
services:
mysql:
image: mysql:5.7.21
networks:
- traefik_network
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=bookstack
- MYSQL_USER=bookstack
- MYSQL_PASSWORD=secret
volumes:
- /var/homelabos/bookstack/mysql-data:/var/lib/mysql
bookstack:
image: solidnerd/bookstack:0.24.3
networks:
- traefik_network
restart: unless-stopped
depends_on:
- mysql
environment:
- DB_HOST=mysql:3306
- DB_DATABASE=bookstack
- DB_USERNAME=bookstack
- DB_PASSWORD=secret
volumes:
- /var/homelabos/bookstack/uploads:/var/www/bookstack/public/uploads
- /var/homelabos/bookstack/storage-uploads:/var/www/bookstack/public/storage
labels:
- "traefik.enable=true"
- "traefik.docker.network=homelabos_traefik"
- "traefik.http.frontend.rule=Host:bookstack.{{ domain }}"
- "traefik.http.protocol=http"
- "traefik.http.port=80"
- "traefik.tor.frontend.rule=Host:bookstack.{{ tor_domain }}"
- "traefik.tor.protocol=http"
- "traefik.tor.port=80"
\ No newline at end of file
......@@ -41,6 +41,7 @@ enable_tor: {{enable_tor}}
enable_apple_health_influx: {{enable_apple_health_influx}}
enable_bitwarden: {{enable_bitwarden}}
enable_bookstack: {{enable_bookstack}}
enable_bulletnotes: {{enable_bulletnotes}}
enable_darksky_influx: {{enable_darksky_influx}}
enable_dasher: {{enable_dasher}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment