forked from davestephens/ansible-nas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalibre.yml
32 lines (31 loc) · 1.1 KB
/
calibre.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
- name: Create Calibre-web Directories
file:
path: "{{ item }}"
state: directory
with_items:
- "{{ calibre_data_directory }}/config"
- name: Calibre-web Docker Container
docker_container:
name: calibre
image: linuxserver/calibre-web:latest
pull: true
volumes:
- "{{ calibre_data_directory }}/config:/config"
- "{{ calibre_books_root }}:/books"
env:
TZ: "{{ ansible_nas_timezone }}"
PUID: "{{ calibre_user_id }}"
PGID: "{{ calibre_group_id }}"
DOCKER_MODS: "{{ calibre_ebook_conversion }}"
ports:
- "{{ calibre_port }}:8083"
restart_policy: unless-stopped
memory: 1g
labels:
traefik.enable: "{{ calibre_available_externally }}"
traefik.http.routers.calibre.rule: "Host(`calibre.{{ ansible_nas_domain }}`)"
traefik.http.routers.calibre.tls.certresolver: "letsencrypt"
traefik.http.routers.calibre.tls.domains[0].main: "{{ ansible_nas_domain }}"
traefik.http.routers.calibre.tls.domains[0].sans: "*.{{ ansible_nas_domain }}"
traefik.http.services.calibre.loadbalancer.server.port: "8083"