2024-09-09 22:37:51 +10:00
|
|
|
---
|
|
|
|
- name: Set Facts
|
|
|
|
set_fact:
|
|
|
|
container_name: 'lidarr'
|
|
|
|
|
|
|
|
- name: Create directories
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
state: directory
|
|
|
|
with_items:
|
2024-09-10 22:09:43 +10:00
|
|
|
- "{{ data_folder }}/lidarr"
|
|
|
|
- "{{ data_folder }}/lidarr/config"
|
2024-09-09 22:37:51 +10:00
|
|
|
|
|
|
|
- name: Create the lidarr container
|
|
|
|
docker_container:
|
|
|
|
name: lidarr
|
2024-12-04 03:01:39 +00:00
|
|
|
image: ghcr.io/linuxserver/lidarr:latest@sha256:7c4c1d52799932b7c2b7e5786adf31ea4edf37093645ccaf06e6d7f6fb2124e7
|
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"
|
|
|
|
AUTO_UPDATE: "true" #optional
|
|
|
|
DOCKER_MODS: "ghcr.io/themepark-dev/theme.park:lidarr"
|
|
|
|
volumes:
|
2024-09-10 22:09:43 +10:00
|
|
|
- "{{ data_folder }}/lidarr/config:/config"
|
2024-09-09 22:37:51 +10:00
|
|
|
- /mnt/nfs/data:/data
|
|
|
|
labels:
|
|
|
|
traefik.enable: "true"
|
|
|
|
traefik.http.routers.lidarr.rule: "Host(`lidarr.comprofix.xyz`)"
|
|
|
|
traefik.http.routers.lidarr.entrypoints: "https"
|
|
|
|
traefik.http.routers.lidarr.tls: "true"
|
|
|
|
traefik.http.services.lidarr.loadbalancer.server.port: "8686"
|