adding ubooquity

This commit is contained in:
Jesse 2019-11-19 13:13:15 -05:00
parent f96bf924c7
commit af4671e2b2
7 changed files with 87 additions and 0 deletions

View file

@ -72,6 +72,7 @@ Ansible config and a bunch of Docker containers.
* [TimeMachine](https://github.com/awlx/samba-timemachine) - Samba-based mac backup server
* [Traefik](https://traefik.io/) - Web proxy and SSL certificate manager
* [Transmission](https://transmissionbt.com/) - BitTorrent client (with OpenVPN if you have a supported VPN provider)
* [Ubooquity](http://vaemendis.net/ubooquity/) - Book and comic server
* [Wallabag](https://wallabag.org/) - Save and classify articles. Read them later.
* [Watchtower](https://github.com/v2tec/watchtower) - Monitor your Docker containers and update them if a new version is available
* [ZNC](https://wiki.znc.in/ZNC) - IRC bouncer to stay connected to favourite IRC networks and channels

View file

@ -0,0 +1,24 @@
# Ubooquity Comic and Book Server
Homepage: [https://vaemendis.net/ubooquity/](https://vaemendis.net/ubooquity/)
Documentation: [https://vaemendis.github.io/ubooquity-doc/](https://vaemendis.github.io/ubooquity-doc/)
Docker Image: [https://hub.docker.com/r/linuxserver/ubooquity/](https://hub.docker.com/r/linuxserver/ubooquity/)
Ubooquity is a free, lightweight and easy-to-use home server for your comics and ebooks. Use it to access your files from anywhere, with a tablet, an e-reader, a phone or a computer.
po
## Usage
Set `ubooquity_enabled: true` in your `group_vars/all.yml` file.
Access the webui at http://<server>:2202/ubooquity by default. See specific configuration section below for information on setting up external access.
## Specific Configuration
Important note: if you want to access Ubooquity externally through Traefik (at ubooquity.yourdomain.tld), you need to go to http://<server>:2203/ubooquity/admin and set the reverse proxy prefix to blank under "Advanced". Otherwise you will need to append "/ubooquity" to the url in order to access.
### Admin login
The admin portal is not exposed through Traefik. You can access the admin portal on port 2203.
Upon your first run, the address is http://<server>:2203/ubooquity/admin. You will be able to set the admin password here.

View file

@ -48,5 +48,7 @@ By default, applications can be found on the ports listed below.
| Traefik | 8083 | |
| Transmission | 9091 | with VPN |
| Transmission | 9092 | |
| Ubooquity | 2202 | |
| Ubooquity | 2203 | Admin |
| Wallabag | 7780 | |
| ZNC | 6677 | |

View file

@ -88,6 +88,9 @@ mosquitto_enabled: false
# Calibre
calibre_enabled: false
# Ubooquity
ubooquity_enabled: false
# Smarthome
openhab_enabled: false
@ -157,6 +160,9 @@ podcasts_root: "{{ samba_shares_root }}/podcasts"
# Where your books are stored
books_root: "{{ samba_shares_root }}/books"
# Where your books are stored
comics_root: "{{ samba_shares_root }}/comics"
# Where photos are stored
photos_root: "{{ samba_shares_root }}/photos"
@ -237,6 +243,14 @@ samba_shares:
browsable: yes
path: "{{ samba_shares_root }}/books"
- name: comics
comment: 'Comics'
guest_ok: yes
public: yes
writable: yes
browsable: yes
path: "{{ samba_shares_root }}/comics"
###
### NFS
###
@ -676,3 +690,11 @@ jellyfin_tv_directory: "{{ tv_root }}"
jellyfin_tv_permissions: "rw"
jellyfin_user_id: "0"
jellyfin_group_id: "0"
###
### Ubooquity
###
ubooquity_available_externally: "false"
ubooquity_data_directory: "{{ docker_home }}/ubooquity"
ubooquity_user_id: 0
ubooquity_group_id: 0

View file

@ -199,3 +199,7 @@
- import_tasks: tasks/cloudcmd.yml
when: (cloudcmd_enabled | default(False))
tags: cloudcmd
- import_tasks: tasks/ubooquity.yml
when: (ubooquity_enabled | default(False))
tags: ubooquity

33
tasks/ubooquity.yml Normal file
View file

@ -0,0 +1,33 @@
---
- name: Create Ubooquity Directories
file:
path: "{{ item }}"
state: directory
with_items:
- "{{ ubooquity_data_directory }}"
- name: Ubooquity Docker Container
docker_container:
name: ubooquity
image: linuxserver/ubooquity:latest
pull: true
volumes:
- "{{ ubooquity_data_directory }}/config:/config:rw"
- "{{ ubooquity_data_directory }}/files:/files:rw"
- "{{ comics_root }}:/comics"
- "{{ books_root }}:/books"
env:
TZ: "{{ ansible_nas_timezone }}"
PUID: "{{ ubooquity_user_id|quote }}"
PGID: "{{ ubooquity_group_id|quote }}"
MAXMEM: "1024"
ports:
- "2202:2202"
- "2203:2203"
restart_policy: unless-stopped
#memory: 1g
labels:
traefik.backend: "ubooquity"
traefik.frontend.rule: "Host:ubooquity.{{ ansible_nas_domain }}"
traefik.enable: "{{ ubooquity_available_externally }}"
traefik.port: "2202"

View file

@ -212,5 +212,6 @@ onDemand = false # create certificate when container is created
"thelounge.{{ ansible_nas_domain }}",
"transmission.{{ ansible_nas_domain }}",
"transmission-openvpn.{{ ansible_nas_domain }}",
"ubooquity.{{ ansible_nas_domain }}",
"wallabag.{{ ansible_nas_domain }}",
"znc.{{ ansible_nas_domain }}"]