This commit is contained in:
2023-09-26 18:14:36 -06:00
commit fb5a0fc542
443 changed files with 21892 additions and 0 deletions

110
Checkrr/.drone.yml Normal file
View File

@@ -0,0 +1,110 @@
---
kind: pipeline
type: docker
name: deploy
environment:
PACKAGE: Checkrr
URL: checkrr.alexlebens.net
steps:
- name: Tests
image: ps03fd.alexlebens.net:5000/droneimage:latest
commands:
- /scripts/tests.sh
- name: Nofification > Discord | Tests - Failure
image: appleboy/drone-discord
settings:
webhook_id:
from_secret: discord_webhook_id
webhook_token:
from_secret: discord_webhook_token
username: DroneCI - ps03fd
message: Docker compose validation for Checkrr failed.
when:
status:
- failure
- name: Configuration
image: ps03fd.alexlebens.net:5000/droneimage:latest
commands:
- mkdir ~/.ssh/
- echo "$SSH_KEY" > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- ssh-keyscan -H $HOST_IP >> ~/.ssh/known_hosts
- /scripts/configuration.sh
environment:
SSH_KEY:
from_secret: ssh_key_ps03fd_drone
DOCKER_HOST:
from_secret: docker_host_ps03fd
HOST_IP:
from_secret: host_ip_ps03fd
UPTIMEKUMA_NAME:
from_secret: uptimekuma_name
UPTIMEKUMA_PASSWORD:
from_secret: uptimekuma_password
UPTIMEKUMA_URL:
from_secret: uptimekuma_url
when:
branch:
- main
- name: Nofification > Discord | Configuration - Failure
image: appleboy/drone-discord
settings:
webhook_id:
from_secret: discord_webhook_id
webhook_token:
from_secret: discord_webhook_token
username: DroneCI - ps03fd
message: Configuration for Checkrr failed.
when:
status:
- failure
- name: Deploy
image: ps03fd.alexlebens.net:5000/droneimage:latest
commands:
- mkdir ~/.ssh/
- echo "$SSH_KEY" > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- ssh-keyscan -H $HOST_IP >> ~/.ssh/known_hosts
- /scripts/deploy.sh
environment:
SSH_KEY:
from_secret: ssh_key_ps03fd_drone
DOCKER_HOST:
from_secret: docker_host_ps03fd
HOST_IP:
from_secret: host_ip_ps03fd
when:
branch:
- main
- name: Nofification > Discord | Deploy - Success
image: appleboy/drone-discord
settings:
webhook_id:
from_secret: discord_webhook_id
webhook_token:
from_secret: discord_webhook_token
username: DroneCI - ps03fd
message: Docker compose deployment for Checkrr succeeded
when:
status:
- sucess
- name: Nofification > Discord | Deploy - Failure
image: appleboy/drone-discord
settings:
webhook_id:
from_secret: discord_webhook_id
webhook_token:
from_secret: discord_webhook_token
username: DroneCI - ps03fd
message: Docker compose deployment for Checkrr failed.
when:
status:
- failure

View File

@@ -0,0 +1,112 @@
checkrr:
checkpath:
- "/mnt/store/Anime"
- "/mnt/store/Anime Movies"
- "/mnt/store/Documentaries"
- "/mnt/store/Documentary Shows"
- "/mnt/store/Movies"
- "/mnt/store/Movies Classics"
- "/mnt/store/Movies Foreign"
- "/mnt/store/Music/Music Artists"
- "/mnt/store/Stand Up"
- "/mnt/store/TV Shows"
database: /tmp/checkrr.db
debug: true
csvfile: /tmp/badfiles.csv
logfile: /tmp/checkrr.log
logjson: false
cron: "@daily"
ignorehidden: true
ignoreexts:
- .txt
- .nfo
- .nfo-orig
- .nzb
- .url
- .db
- .srt
- .ac3
- .m2ts
arr:
radarr:
process: true
service: radarr
address: 172.27.1.30
apikey: e6e3d6f4aafe4e499d970cfcbf042db9
baseurl: /
port: 7878
radarranime:
process: true
service: radarr
address: 172.27.1.61
apikey: fb126bad31d64d43bb669ad81329954d
baseurl: /
port: 7878
radarrart:
process: true
service: radarr
address: 172.27.1.62
apikey: 32365893c4234f8a9ad96d68d6e7a520
baseurl: /
port: 7878
radarrdocumentaries:
process: true
service: radarr
address: 172.27.1.63
apikey: fd03f47363324096a56d0a453623420b
baseurl: /
port: 7878
radarrstandup:
process: true
service: radarr
address: 172.27.1.64
apikey: c7c425b3fbcf4112895aceec7729f4d1
baseurl: /
port: 7878
sonarr:
process: true
service: sonarr
address: 172.27.1.31
apikey: 7f0dfeea4b9f410d96b5ffa2f809d1e8
baseurl: /
port: 8989
sonarranime:
process: true
service: sonarr
address: 172.27.1.70
apikey: a2f10e70559c4ee3b8ff1d6cdc5a41f1
baseurl: /
port: 8989
sonarrdocumentaries:
process: true
service: sonarr
address: 172.27.1.72
apikey: 3ed988c3731b45ad8124b7d55b620d6b
baseurl: /
port: 8989
lidarr:
service: lidarr
process: true
address: 172.27.1.32
apikey: d25bd6d24f4e4b90a21fc5b70bcb9fd9
baseurl: /
port: 8686
notifications:
discord:
url: https://discord.com/api/webhooks/988292688501698590/7rh8CfveLozzH9qTJdLK6zxBAwpPqzC6jeDGwo92xoOhHgHR7UuWIsnS1fJUdriErpWN
notificationtypes:
- reacquire
- unknowndeleted
- unknowndetected
- startrun
- endrun
pushover:
apitoken: ae7g9zjetygqc1myexgszjp44z5xx8
recipient: pixel7
notificationtypes:
- reacquire
webserver:
port: 8585
baseurl: "/"
trustedproxies:
- 172.27.0.0/16

3
Checkrr/README.md Normal file
View File

@@ -0,0 +1,3 @@
# Checkrr
[![Build Status](https://drone.alexlebens.net/api/badges/alexlebens/Checkrr/status.svg)](https://drone.alexlebens.net/alexlebens/Checkrr)

View File

@@ -0,0 +1,17 @@
{
"type": "docker",
"name": "Checkrr - Docker",
"interval": 60,
"retryInterval": 20,
"maxretries": 1,
"notificationIDList": [
3,
4
],
"url": "https://checkrr.alexlebens.net",
"accepted_statuscodes": [
"200-299"
],
"docker_container": "checkrr",
"docker_host": 1
}

View File

@@ -0,0 +1,15 @@
{
"type": "http",
"name": "Checkrr - Web",
"interval": 60,
"retryInterval": 20,
"maxretries": 1,
"notificationIDList": [
3,
4
],
"url": "https://checkrr.alexlebens.net",
"accepted_statuscodes": [
"200-299"
]
}

View File

@@ -0,0 +1,56 @@
services:
checkrr:
command:
- --config-file=/tmp/checkrr.yaml
container_name: checkrr
environment:
- TZ=America/Denver
image: aetaric/checkrr:latest
labels:
traefik.docker.network: traefik
traefik.enable: true
traefik.http.routers.checkrr.entrypoints: websecure
traefik.http.routers.checkrr.rule: Host(`checkrr.alexlebens.net`)
traefik.http.routers.checkrr.service: checkrr
traefik.http.routers.checkrr.middlewares: authentik@file
traefik.http.services.checkrr.loadbalancer.server.port: 8585
logging:
driver: json-file
options:
max-size: 50m
max-file: "3"
networks:
traefik: null
restart: always
privileged: true
user: root
volumes:
- checkrr:/tmp
- storage_nfs:/mnt/store
networks:
traefik:
name: traefik
external: true
volumes:
checkrr:
driver: local
driver_opts:
type: none
o: bind
device: /var/lib/docker/volumes/partition/servarr_checkrr
# storage:
# driver: local
# driver_opts:
# type: cifs
# o: username=aurailious,password=24wrsfxv@$$WRSFXV,file_mode=0777,dir_mode=0777
# device: "//192.168.1.194/Storage"
storage_nfs:
driver: local
driver_opts:
type: nfs
o: addr=192.168.1.194,nfsvers=4
device: :/volume2/Storage