2024-09-09 22:37:51 +10:00
|
|
|
---
|
|
|
|
- name: Create directories
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
with_items:
|
2024-09-10 22:09:43 +10:00
|
|
|
- "{{ data_folder }}/sonarr"
|
|
|
|
- "{{ data_folder }}/sonarr/config"
|
2024-09-09 22:37:51 +10:00
|
|
|
|
|
|
|
- name: Create the sonarr container
|
|
|
|
docker_container:
|
|
|
|
name: sonarr
|
2024-10-26 14:01:15 +10:00
|
|
|
image: linuxserver/sonarr:4.0.10
|
2024-09-09 22:37:51 +10:00
|
|
|
restart_policy: unless-stopped
|
|
|
|
recreate: true
|
|
|
|
networks:
|
|
|
|
- name: proxy
|
|
|
|
env:
|
|
|
|
PUID: "1000"
|
|
|
|
PGID: "1000"
|
|
|
|
TZ: "Australia/Brisbane"
|
|
|
|
DOCKER_MODS: "ghcr.io/themepark-dev/theme.park:sonarr"
|
|
|
|
volumes:
|
2024-09-10 22:09:43 +10:00
|
|
|
- "{{ data_folder }}/sonarr/config/:/config"
|
2024-09-09 22:37:51 +10:00
|
|
|
- /mnt/nfs/data:/data
|
|
|
|
labels:
|
|
|
|
traefik.enable: "true"
|
|
|
|
traefik.http.routers.sonarr.rule: "Host(`sonarr.comprofix.xyz`)"
|
|
|
|
traefik.http.routers.sonarr.entrypoints: "https"
|
|
|
|
traefik.http.routers.sonarr.tls: "true"
|
|
|
|
traefik.http.services.sonarr.loadbalancer.server.port: "8989"
|