ansible-nas/tasks/jackett.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

26 lines
No EOL
716 B
YAML

---
- name: Create jackett Directories
file:
path: "{{ item }}"
state: directory
with_items:
- "{{ jackett_data_directory }}"
- name: jackett
docker_container:
name: jackett
image: linuxserver/jackett
volumes:
- "{{ jackett_data_directory }}:/config:rw"
- "/etc/localtime:/etc/localtime:ro"
- "{{ torrents_root }}:/downloads"
ports:
- "{{ jackett_port }}:9117"
env:
TZ: "{{ ansible_nas_timezone }}"
restart_policy: unless-stopped
labels:
traefik.backend: "jackett"
traefik.frontend.rule: "Host:jackett.{{ ansible_nas_domain }}"
traefik.enable: "{{ jackett_available_externally }}"
traefik.port: "{{ jackett_port }}"