2019-11-19 18:13:15 +00:00
|
|
|
---
|
|
|
|
- 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:
|
2020-01-18 18:16:24 +00:00
|
|
|
- "{{ ubooquity_port_webui }}:2202"
|
|
|
|
- "{{ ubooquity_port_admin }}:2203"
|
2019-11-19 18:13:15 +00:00
|
|
|
restart_policy: unless-stopped
|
|
|
|
labels:
|
|
|
|
traefik.enable: "{{ ubooquity_available_externally }}"
|
2021-01-19 23:51:59 +00:00
|
|
|
traefik.http.routers.ubooquity.rule: "Host(`ubooquity.{{ ansible_nas_domain }}`)"
|
|
|
|
traefik.http.routers.ubooquity.tls.certresolver: "letsencrypt"
|
|
|
|
traefik.http.routers.ubooquity.tls.domains[0].main: "{{ ansible_nas_domain }}"
|
|
|
|
traefik.http.routers.ubooquity.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
|
|
|
|
traefik.http.services.ubooquity.loadbalancer.server.port: "2202"
|