32 lines
969 B
YAML
32 lines
969 B
YAML
|
---
|
||
|
- name: Create directories
|
||
|
file:
|
||
|
path: "{{ item }}"
|
||
|
state: directory
|
||
|
with_items:
|
||
|
- "/mnt/nfs/docker/readarr"
|
||
|
- "/mnt/nfs/docker/readarr/config"
|
||
|
|
||
|
- name: Create the readarr container
|
||
|
docker_container:
|
||
|
name: readarr
|
||
|
image: ghcr.io/linuxserver/readarr:develop@sha256:dbca70a2dedff17b12698f55c02a49e3ec37e8ce884c5352b54264f9a3979aae
|
||
|
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:
|
||
|
- /mnt/nfs/docker/readarr/config/:/config
|
||
|
- /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"
|