add docker config files

This commit is contained in:
Crashillo 2022-10-05 08:48:25 +02:00
parent bc0eb225b8
commit b29049731c
12 changed files with 125 additions and 0 deletions

1
.gitignore vendored
View File

@ -3,4 +3,5 @@ img/*
logs/*
mysql/*
docker/*
!docker/*.conf
!*/.gitkeep

11
docker/bazarr.conf Normal file
View File

@ -0,0 +1,11 @@
docker run -d --name=bazarr \
-e PUID=1000 -e PGID=1000 \
-e TZ=Europe/Madrid \
-p 6767:6767 \
-v $HOME/docker/bazarr:/config \
-v $MOUNTPATH/media/Movies:/data/movies \
-v $MOUNTPATH/media/TVShows:/data/tv \
--network media \
--hostname bazarr \
--restart unless-stopped \
linuxserver/bazarr

10
docker/calibre-web.conf Normal file
View File

@ -0,0 +1,10 @@
docker run -d --name calibre-web \
-e PUID=1000 -e PGID=1000 \
-e TZ=Europe/Madrid \
-p 8083:8083/tcp \
-v $HOME/docker/calibre-web:/config \
-v $MOUNTPATH/media/Books:/books \
--hostname calibre-web \
--restart unless-stopped \
linuxserver/calibre-web

12
docker/deluge.conf Normal file
View File

@ -0,0 +1,12 @@
docker run -d --name=deluge \
-e PUID=1000 -e PGID=1000 \
-e TZ=Europe/Madrid \
-p 8112:8112 \
-p 6881:6881 \
-p 6881:6881/udp \
-v $HOME/docker/deluge:/config \
-v $MOUNTPATH/media/.tmp:/data/downloads \
--hostname deluge \
--restart unless-stopped \
linuxserver/deluge

11
docker/freshrss.conf Normal file
View File

@ -0,0 +1,11 @@
docker run -d --name=freshrss \
-e UID=1000 -e GID=1000 \
-e TZ=Europe/Madrid \
-p 8079:80 \
-v $HOME/docker/freshrss/data:/var/www/FreshRSS/data \
-v $HOME/docker/freshrss/extensions:/var/www/FreshRSS/extensions \
-e 'CRON_MIN=4,34' \
--hostname freshrss \
--restart unless-stopped \
freshrss/freshrss:arm

18
docker/gitea.conf Normal file
View File

@ -0,0 +1,18 @@
docker run -d --name gitea \
-e USER=gitea -e USER_UID=1000 -e USER_GID=1000 \
-e TZ=Europe/Madrid \
-e GITEA__server__ROOT_URL=http://own.strangled.net/gitea-new \
-e GITEA__database__DB_TYPE=mysql \
-e GITEA__database__HOST=host.docker.internal:3306 \
-e GITEA__database__NAME=gitea \
-e GITEA__database__USER=gitea \
-e GITEA__database__PASSWD=g1t34 \
-v $HOME/docker/gitea:/data \
-v /home/gitea/.ssh:/data/git/.ssh \
-p 3001:3000 \
-p 127.0.0.1:2222:22 \
--hostname gitea \
--add-host host.docker.internal:host-gateway \
--restart unless-stopped \
kunde21/gitea-arm

9
docker/prowlarr.conf Normal file
View File

@ -0,0 +1,9 @@
docker run -d --name=prowlarr \
-e PUID=1000 -e PGID=1000 \
-e TZ=Europe/Madrid \
-p 9696:9696 \
-v $HOME/docker/prowlarr:/config \
--network media \
--hostname prowlarr \
--restart unless-stopped \
linuxserver/prowlarr:develop

13
docker/qbittorrent.conf Normal file
View File

@ -0,0 +1,13 @@
docker run -d --name=qbittorrent \
-e PUID=1000 -e PGID=1000 \
-e TZ=Europe/Madrid \
-e WEBUI_PORT=8585 \
-p 8585:8585 \
-p 6881:6881 \
-p 6881:6881/udp \
-v $MOUNTPATH/media/.tmp:/data/downloads \
-v $HOME/docker/qbittorrent:/config \
--network media \
--hostname qbittorrent \
--restart unless-stopped \
linuxserver/qbittorrent:latest

10
docker/radarr.conf Normal file
View File

@ -0,0 +1,10 @@
docker run -d --name=radarr \
-e PUID=1000 -e PGID=1000 \
-e TZ=Europe/Madrid \
-p 7878:7878 \
-v $HOME/docker/radarr:/config \
-v $MOUNTPATH/media:/data \
--network media \
--hostname radarr \
--restart unless-stopped \
linuxserver/radarr

View File

@ -0,0 +1,7 @@
# Sincroniza las configuraciones de docker entre filesystems, ya que usan SQLlite, el cual se bloquea en NFS
SHELL=/bin/bash
BASEDIR="/mnt/nfs/HDD/config/docker"
36 */6 * * * [[ -w "$BASEDIR" ]] && { rsync -auv --delete "$HOME/docker/bazarr/"* "$BASEDIR/bazarr"; echo; } >> /tmp/bazarr.rsync.log 2>&1
36 */6 * * * [[ -w "$BASEDIR" ]] && { rsync -auv --delete "$HOME/docker/sonarr/"* "$BASEDIR/sonarr"; echo; } >> /tmp/sonarr.rsync.log 2>&1
36 */6 * * * [[ -w "$BASEDIR" ]] && { rsync -auv --delete "$HOME/docker/radarr/"* "$BASEDIR/radarr"; echo; } >> /tmp/radarr.rsync.log 2>&1
36 */6 * * * [[ -w "$BASEDIR" ]] && { rsync -auv --delete "$HOME/docker/prowlarr/"* "$BASEDIR/prowlarr"; echo; } >> /tmp/prowlarr.rsync.log 2>&1

10
docker/sonarr.conf Normal file
View File

@ -0,0 +1,10 @@
docker run -d --name=sonarr \
-e PUID=1000 -e PGID=1000 \
-e TZ=Europe/Madrid \
-p 8989:8989 \
-v $HOME/docker/sonarr:/config \
-v $MOUNTPATH/media:/data \
--network media \
--hostname sonarr \
--restart unless-stopped \
linuxserver/sonarr

13
docker/watchtower.conf Normal file
View File

@ -0,0 +1,13 @@
docker run -d --name watchtower \
-v /var/run/docker.sock:/var/run/docker.sock \
-e TZ=Europe/Madrid \
-e WATCHTOWER_NOTIFICATIONS=shoutrrr \
-e WATCHTOWER_NOTIFICATION_URL="telegram://971389171:AAHBi-OjTUQs5SR1j3BuoWs-mVdPb0E3reg@telegram/?channels=45714853&parseMode=html" \
-e WATCHTOWER_CLEANUP=true \
-e WATCHTOWER_POLL_INTERVAL=10800 \
-e WATCHTOWER_NO_STARTUP_MESSAGE=true \
--network host \
--hostname watchtower \
--restart unless-stopped \
containrrr/watchtower