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

37 lines
1 KiB
YAML

---
- name: Remove Old Sickrage Docker Container
docker_container:
name: sickrage
state: absent
keep_volumes: true
- name: Create Sickchill Directories
file:
path: "{{ item }}"
state: directory
# mode: 0755
with_items:
- "{{ sickchill_config_directory }}"
- name: Sickchill Docker Container
docker_container:
name: sickchill
image: linuxserver/sickchill
pull: true
volumes:
- "{{ sickchill_config_directory }}:/config:rw"
- "{{ sickchill_downloads_directory }}:/downloads:rw"
- "{{ sickchill_tv_directory }}:/tv:rw"
ports:
- "{{ sickchill_port }}:8081"
env:
TZ: "{{ ansible_nas_timezone }}"
PUID: "{{ sickchill_user_id }}"
PGID: "{{ sickchill_group_id }}"
restart_policy: unless-stopped
memory: 1g
labels:
traefik.backend: "sickchill"
traefik.frontend.rule: "Host:sickchill.{{ ansible_nas_domain }}"
traefik.enable: "{{ sickchill_available_externally }}"
traefik.port: "{{ sickchill_port }}"