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 }}/readarr"
|
|
|
|
- "{{ data_folder }}/readarr/config"
|
2024-09-09 22:37:51 +10:00
|
|
|
|
|
|
|
- name: Create the readarr container
|
|
|
|
docker_container:
|
|
|
|
name: readarr
|
2024-09-19 15:00:54 +10:00
|
|
|
image: ghcr.io/linuxserver/readarr:develop@sha256:81e688095954fd4334c9c40f798d40e6cfc47f0a8882b09eb5dd117a7274f01f
|
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:readarr"
|
|
|
|
volumes:
|
2024-09-10 22:09:43 +10:00
|
|
|
- "{{ data_folder }}/readarr/config/:/config"
|
2024-09-09 22:37:51 +10:00
|
|
|
- /mnt/nfs/data/:/data
|
|
|
|
labels:
|
|
|
|
traefik.enable: "true"
|
|
|
|
traefik.http.routers.readarr.rule: "Host(`readarr.comprofix.xyz`)"
|
|
|
|
traefik.http.routers.readarr.entrypoints: "https"
|
|
|
|
traefik.http.routers.readarr.tls: "true"
|
|
|
|
traefik.http.services.readarr.loadbalancer.server.port: "8787"
|