37 lines
1.0 KiB
YAML
37 lines
1.0 KiB
YAML
|
---
|
||
|
- name: Set Facts
|
||
|
set_fact:
|
||
|
container_name: 'lidarr'
|
||
|
|
||
|
- name: Create directories
|
||
|
file:
|
||
|
path: "{{ item }}"
|
||
|
state: directory
|
||
|
with_items:
|
||
|
- "/mnt/nfs/docker/lidarr"
|
||
|
- "/mnt/nfs/docker/lidarr/config"
|
||
|
|
||
|
- name: Create the lidarr container
|
||
|
docker_container:
|
||
|
name: lidarr
|
||
|
image: ghcr.io/linuxserver/lidarr:latest@sha256:a77af413426b8509fad2d02f5b89104a5766ee6ebb13497d73993e74f6cfa0a8
|
||
|
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:
|
||
|
- /mnt/nfs/docker/lidarr/config:/config
|
||
|
- /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"
|