This commit is contained in:
Mike Wilson
2023-02-01 11:57:25 -05:00
parent 9060206f9a
commit 2cec34cfc9
7 changed files with 93 additions and 0 deletions

View File

@@ -9,3 +9,4 @@
- prowlarr - prowlarr
- sonarr - sonarr
- radarr - radarr
- ntfy

View File

@@ -19,3 +19,7 @@
ansible.builtin.package: ansible.builtin.package:
name: docker-compose name: docker-compose
state: present state: present
- name: Create Traefik docker network
community.docker.docker_network:
name: traefik

View File

@@ -0,0 +1,21 @@
- name: Create install directory
file:
path: "{{ install_directory }}/radarr"
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 }}/radarr/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 }}/radarr"
pull: true
remove_orphans: yes

View File

@@ -0,0 +1,23 @@
version: "{{ docker_compose_version }}"
networks:
traefik:
external: true
services:
ntfy:
container_name: ntfy
image: binwiederhier/ntfy:latest
restart: unless-stopped
networks:
- traefik
user: "{{ primary_uid }}:{{ primary_gid }}"
environment:
- TZ={{ timezone }}
volumes:
- "{{ data_dir }}/ntfy:/etc/ntfy"
- /var/cache/ntfy:/var/cache/ntfy
labels:
traefik.enable: true
traefik.http.routers.ntfy.rule: "Host(`ntfy.{{ personal_domain }}`)"
traefik.http.routers.ntfy.middlewares: lan-whitelist@file

View File

@@ -0,0 +1,21 @@
- name: Create install directory
file:
path: "{{ install_directory }}/radarr"
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 }}/radarr/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 }}/radarr"
pull: true
remove_orphans: yes

View File

@@ -0,0 +1,22 @@
version: "{{ docker_compose_version }}"
networks:
traefik:
external: true
services:
overseerr:
container_name: overseerr
image: lscr.io/linuxserver/overseerr:latest
restart: unless-stopped
networks:
- traefik
environment:
- PUID={{ primary_uid }}
- PGID={{ primary_gid }}
- TZ={{ timezone }}
volumes:
- "{{ data_dir }}/overseerr:/config"
labels:
traefik.enable: true
traefik.http.routers.overseerr.rule: "Host(`overseerr.{{ personal_domain }}`)"

View File

@@ -14,6 +14,7 @@ services:
- PUID={{ primary_uid }} - PUID={{ primary_uid }}
- PGID={{ media_gid }} - PGID={{ media_gid }}
- TZ={{ timezone }} - TZ={{ timezone }}
- DOCKER_MODS=arafatamim/linuxserver-io-mod-vuetorrent
volumes: volumes:
- "{{ data_dir }}/qbittorrent:/config" - "{{ data_dir }}/qbittorrent:/config"
- "{{ media_storage_mnt }}/data/torrents:/downloads" - "{{ media_storage_mnt }}/data/torrents:/downloads"