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

30 lines
No EOL
830 B
YAML

---
- name: Create Sonarr Directories
file:
path: "{{ item }}"
state: directory
with_items:
- "{{ sonarr_data_directory }}"
- name: Sonarr
docker_container:
name: sonarr
image: linuxserver/sonarr
pull: true
volumes:
- "{{ sonarr_tv_directory }}:/tv:rw"
- "{{ sonarr_download_directory }}/complete:/downloads:rw"
- "{{ sonarr_data_directory }}:/config:rw"
ports:
- "{{ sonarr_port }}:8989"
env:
TZ: "{{ ansible_nas_timezone }}"
PUID: "{{ sonarr_user_id }}"
PGID: "{{ sonarr_group_id }}"
restart_policy: unless-stopped
memory: 1g
labels:
traefik.backend: "sonarr"
traefik.frontend.rule: "Host:sonarr.{{ ansible_nas_domain }}"
traefik.enable: "{{ sonarr_available_externally }}"
traefik.port: "{{ sonarr_port }}"