docker backup
mediahost crontab for user lucas mediarr: set lidarr to develpp install cleanuparr install readrr/sonarr/lidarr/prowlarr exporter for prometheus nextcloud: remive nginx hostname from trusted proxies wireguard: add wg0 conf
This commit is contained in:
1 parent
0e52aefa07
commit
179256de3e
6 files changed
+171
-4
No files matched your search
@@ -0,0 +1,40 @@
|
||||
# Edit this file to introduce tasks to be run by cron.
|
||||
#
|
||||
# Each task to run has to be defined through a single line
|
||||
# indicating with different fields when the task will be run
|
||||
# and what command to run for the task
|
||||
#
|
||||
# To define the time you can provide concrete values for
|
||||
# minute (m), hour (h), day of month (dom), month (mon),
|
||||
# and day of week (dow) or use '*' in these fields (for 'any').
|
||||
#
|
||||
# Notice that tasks will be started based on the cron's system
|
||||
# daemon's notion of time and timezones.
|
||||
#
|
||||
# Output of the crontab jobs (including errors) is sent through
|
||||
# email to the user the crontab file belongs to (unless redirected).
|
||||
#
|
||||
# For example, you can run a backup of all your user accounts
|
||||
# at 5 a.m every week with:
|
||||
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
|
||||
#
|
||||
# For more information see the manual pages of crontab(5) and cron(8)
|
||||
#
|
||||
# Example of job definition:
|
||||
# .---------------- minute (0 - 59)
|
||||
# | .------------- hour (0 - 23)
|
||||
# | | .---------- day of month (1 - 31)
|
||||
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
|
||||
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
|
||||
# | | | | |
|
||||
# * * * * * user-name command to be executed
|
||||
|
||||
*/5 * * * * /usr/bin/docker exec -u www-data nextcloud /usr/local/bin/php -f /var/www/html/cron.php
|
||||
|
||||
0 * * * * /home/lucas/scripts/media\ handling/convert_heic.sh
|
||||
10 * * * * /home/lucas/scripts/file\ processing/rename_camera_folder.sh
|
||||
0 * * * * /home/lucas/scripts/file\ processing/rename_memes_folder.sh
|
||||
0 3 * * * docker compose run --rm certbot renew && docker compose exec nginx nginx -s reload
|
||||
*/5 * * * * /home/lucas/scripts/docker_compose/node-exporter-pubip-docker-states.sh
|
||||
0 23 * * * syncNC -c && rsync -avz --info=progress2 --delete --exclude "Camera/" --exclude "Alina Share/" /data/nextcloud/syncuser/pictures/ /data/immich/pictures/
|
||||
0 3 * * 0 /home/lucas/scripts/utils/download_latest_ubuntu.sh
|
||||
@@ -68,7 +68,7 @@ services:
|
||||
- ./prowlarr:/config
|
||||
|
||||
gluetun-rundfunkarr-de:
|
||||
image: qmcgaw/gluetun
|
||||
image: qmcgaw/gluetun:latest
|
||||
container_name: gluetun-rundfunkarr-de
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
@@ -155,7 +155,7 @@ services:
|
||||
- "8191:8191"
|
||||
|
||||
lidarr:
|
||||
image: lscr.io/linuxserver/lidarr:latest
|
||||
image: lscr.io/linuxserver/lidarr:develop #latest
|
||||
container_name: lidarr
|
||||
environment:
|
||||
- PUID=1000
|
||||
@@ -284,7 +284,23 @@ services:
|
||||
- HTTPPROXY=on
|
||||
- SOCKSPROXY=on
|
||||
restart: unless-stopped
|
||||
|
||||
cleanuparr:
|
||||
image: ghcr.io/cleanuparr/cleanuparr:latest
|
||||
container_name: cleanuparr
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "11011:11011"
|
||||
volumes:
|
||||
- ./cleanuparr:/config
|
||||
- /torrent/qbittorrent/downloads:/downloads
|
||||
- /torrent/qbittorrent/orphaned:/orphaned
|
||||
environment:
|
||||
- PORT=11011
|
||||
- BASE_PATH=
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- UMASK=022
|
||||
- TZ=Etc/UTC
|
||||
networks:
|
||||
default:
|
||||
external: true
|
||||
|
||||
@@ -79,6 +79,79 @@ services:
|
||||
- "9115:9115"
|
||||
volumes:
|
||||
- ./blackbox.yml:/etc/blackbox_exporter/config.yml:ro
|
||||
sonarr-de-exporter:
|
||||
image: ghcr.io/onedr0p/exportarr:latest
|
||||
container_name: sonarr-de-exporter
|
||||
environment:
|
||||
PORT: 9707
|
||||
URL: http://sonarr-de:8989
|
||||
APIKEY: 707d4fcbb3d74822ba990c6a8b7278e9
|
||||
command: ["sonarr"]
|
||||
networks:
|
||||
- default
|
||||
- mediarr-services
|
||||
|
||||
radarr-de-exporter:
|
||||
image: ghcr.io/onedr0p/exportarr:latest
|
||||
container_name: radarr-de-exporter
|
||||
environment:
|
||||
PORT: 9711
|
||||
URL: http://radarr-de:7878
|
||||
APIKEY: 29f67f0ac8894357b22ea3f7fc1abfdf
|
||||
command: ["radarr"]
|
||||
networks:
|
||||
- default
|
||||
- mediarr-services
|
||||
|
||||
radarr-en-exporter:
|
||||
image: ghcr.io/onedr0p/exportarr:latest
|
||||
container_name: radarr-en-exporter
|
||||
environment:
|
||||
PORT: 9708
|
||||
URL: http://radarr-en:7878
|
||||
APIKEY: 4332aee075c748f2acee41aa26f06007
|
||||
command: ["radarr"]
|
||||
networks:
|
||||
- default
|
||||
- mediarr-services
|
||||
|
||||
lidarr-exporter:
|
||||
image: ghcr.io/onedr0p/exportarr:latest
|
||||
container_name: lidarr-exporter
|
||||
environment:
|
||||
PORT: 9709
|
||||
URL: http://lidarr:8686
|
||||
APIKEY: bb41cbf2b17e439290f90ecfaeb24dff
|
||||
command: ["lidarr"]
|
||||
networks:
|
||||
- default
|
||||
- mediarr-services
|
||||
|
||||
prowlarr-exporter:
|
||||
image: ghcr.io/onedr0p/exportarr:latest
|
||||
container_name: prowlarr-exporter
|
||||
environment:
|
||||
PORT: 9710
|
||||
URL: http://prowlarr:9696
|
||||
APIKEY: 317f5dd6c06446c6a352a621be607acb
|
||||
command: ["prowlarr"]
|
||||
networks:
|
||||
- default
|
||||
- mediarr-services
|
||||
|
||||
listenarr-exporter:
|
||||
build: listenarr-exporter
|
||||
container_name: listenarr-exporter
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
LISTENARR_URL: http://listenarr:4545
|
||||
LISTENARR_APIKEY: FtKkg30FLbORoaJXXBx4oHJL2r1/3kPtZXKlxqSloWs
|
||||
ports:
|
||||
- "9712:9712"
|
||||
networks:
|
||||
- default
|
||||
- mediarr-services
|
||||
|
||||
volumes:
|
||||
prometheus-data:
|
||||
grafana-data:
|
||||
@@ -86,3 +159,5 @@ networks:
|
||||
default:
|
||||
shared-proxy-services:
|
||||
external: true
|
||||
mediarr-services:
|
||||
external: true
|
||||
@@ -76,4 +76,26 @@ scrape_configs:
|
||||
- "192.168.0.4:9633"
|
||||
labels:
|
||||
host: "mediahost"
|
||||
- job_name: 'sonarr-de'
|
||||
static_configs:
|
||||
- targets: ['sonarr-de-exporter:9707']
|
||||
|
||||
- job_name: 'radarr-de'
|
||||
static_configs:
|
||||
- targets: ['radarr-de-exporter:9711']
|
||||
|
||||
- job_name: 'radarr-en'
|
||||
static_configs:
|
||||
- targets: ['radarr-en-exporter:9708']
|
||||
|
||||
- job_name: 'lidarr'
|
||||
static_configs:
|
||||
- targets: ['lidarr-exporter:9709']
|
||||
|
||||
- job_name: 'prowlarr'
|
||||
static_configs:
|
||||
- targets: ['prowlarr-exporter:9710']
|
||||
- job_name: "listenarr"
|
||||
static_configs:
|
||||
- targets:
|
||||
- listenarr-exporter:9712
|
||||
@@ -27,7 +27,8 @@ services:
|
||||
- OVERWRITEPROTOCOL=https
|
||||
- OVERWRITECLIURL=https://${NEXTCLOUD_DOMAIN}
|
||||
- OVERWRITEHOST=${NEXTCLOUD_DOMAIN}
|
||||
- TRUSTED_PROXIES=nginx 172.16.0.0/12
|
||||
- TRUSTED_PROXIES=172.16.0.0/12
|
||||
- DEFAULT_PHONE_REGION=AT
|
||||
# SMTP
|
||||
- SMTP_HOST=${SMTP_HOST}
|
||||
- SMTP_PORT=${SMTP_PORT}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
|
||||
# Note: Do not edit this file directly.
|
||||
# Your changes will be overwritten!
|
||||
|
||||
# Server
|
||||
[Interface]
|
||||
PrivateKey = 6CXCZMoH8bj7Ku//g0vyXms2IIffHR18K8RnOklzgnc=
|
||||
Address = 10.8.0.1/24
|
||||
ListenPort = 51820
|
||||
PreUp =
|
||||
PostUp = iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE; iptables -A INPUT -p udp -m udp --dport 51820 -j ACCEPT; iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT;
|
||||
PreDown =
|
||||
PostDown = iptables -t nat -D POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE; iptables -D INPUT -p udp -m udp --dport 51820 -j ACCEPT; iptables -D FORWARD -i wg0 -j ACCEPT; iptables -D FORWARD -o wg0 -j ACCEPT;
|
||||
Reference in new issue
Block a user