ansible-nas/tasks/calibre.yml
animeai ce21999f46 Map all ports as variables in all.yml.dist
NOTE: The majority of traefik ports were totally broken and would never have worked. It should be the external port there, not the internal container port!.

Port conflicts were fixed.
2020-01-05 21:47:40 +00:00

29 lines
No EOL
857 B
YAML

- name: Create Calibre Directories
file:
path: "{{ item }}"
state: directory
with_items:
- "{{ calibre_data_directory }}/config"
- name: Calibre Docker Container
docker_container:
name: calibre
image: linuxserver/calibre-web:latest
pull: true
volumes:
- "{{ calibre_data_directory }}/config:/config"
- "{{ 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
labels:
traefik.backend: "calibre"
traefik.frontend.rule: "Host:calibre.{{ ansible_nas_domain }}"
traefik.enable: "{{ calibre_available_externally }}"
traefik.port: "{{ calibre_port }} "
memory: 1g