Added sonarr and prowlarr roles

This commit is contained in:
Mike Wilson
2023-01-30 17:06:30 -05:00
parent 117c30149f
commit 5dcdd7aad2
10 changed files with 105 additions and 9 deletions

View File

@@ -0,0 +1,21 @@
- name: Create install directory
file:
path: "{{ install_directory }}/prowlarr"
state: directory
owner: "{{ docker_user }}"
mode: "{{ docker_compose_directory_mask }}"
become: true
- name: Copy docker-compose file to destination
template:
src: docker-compose.yml
dest: "{{ install_directory }}/prowlarr/docker-compose.yml"
mode: "{{ docker_compose_file_mask }}"
validate: docker-compose -f %s config
become: true
- name: Start docker container
community.docker.docker_compose:
project_src: "{{ install_directory }}/prowlarr"
pull: true
remove_orphans: yes

View File

@@ -0,0 +1,24 @@
version: "{{ docker_compose_version }}"
networks:
traefik:
external: true
services:
prowlarr:
container_name: prowlarr
image: lscr.io/linuxserver/prowlarr:latest
restart: unless-stopped
networks:
- traefik
environment:
- PUID={{ primary_uid }}
- PGID={{ media_gid }}
- TZ={{ timezone }}
volumes:
- "{{ data_dir }}/prowlarr:/config"
- "{{ media_storage_mnt }}/data:/data"
labels:
traefik.enable: true
traefik.http.routers.prowlarr.rule: "Host(`prowlarr.local.{{ personal_domain }}`)"
traefik.http.routers.prowlarr.middlewares: lan-whitelist@file