From 17d50b03254dd8a9bff0f342dbf68af5b0a53363 Mon Sep 17 00:00:00 2001 From: fakeowl1 Date: Wed, 1 Jan 2025 21:03:07 +0200 Subject: [PATCH] Update docker-compose files --- .gitignore | 2 ++ jellyfin/docker-compose.yaml | 48 ++++++++++++++++++++++++- nginx/configs/nginx/conf.d/jackett.conf | 17 +++++++++ nginx/configs/nginx/conf.d/radarr.conf | 20 +++++++++++ nginx/configs/nginx/conf.d/sonarr.conf | 20 +++++++++++ transmission/docker-compose.yaml | 12 +++---- 6 files changed, 112 insertions(+), 7 deletions(-) create mode 100644 nginx/configs/nginx/conf.d/jackett.conf create mode 100644 nginx/configs/nginx/conf.d/radarr.conf create mode 100644 nginx/configs/nginx/conf.d/sonarr.conf diff --git a/.gitignore b/.gitignore index 2aa91d5..dd0832d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,8 @@ transmission/.env jellyfin/cache jellyfin/config jellyfin/logs +jellyfin/radarr +jellyfin/sonarr homeassistant/config nextcloud/databases nextcloud/nextcloud diff --git a/jellyfin/docker-compose.yaml b/jellyfin/docker-compose.yaml index 06db275..a0a9afe 100644 --- a/jellyfin/docker-compose.yaml +++ b/jellyfin/docker-compose.yaml @@ -3,7 +3,7 @@ services: image: jellyfin/jellyfin user: "1000:1000" ports: - - 8096:8096 + - 8096 volumes: - ./config:/config - ./cache:/cache @@ -13,10 +13,56 @@ services: devices: - /dev/dri/renderD128:/dev/dri/renderD128 environment: + - PUID=1000 + - PGID=1000 - TZ=Europe/Kyiv networks: - net restart: 'unless-stopped' + + sonarr: + image: lscr.io/linuxserver/sonarr:latest + container_name: sonarr + environment: + - PUID=1000 + - PGID=1000 + - TZ=Europe/Kyiv + volumes: + - ./sonarr/config:/config:z + - /media/hda1/jellyfin:/data:z #Access to the entire /media + networks: + - net + restart: unless-stopped + + radarr: + image: lscr.io/linuxserver/radarr:latest + container_name: radarr + environment: + - PUID=1000 + - PGID=1000 + - TZ=Europe/Kyiv + volumes: + - ./radarr/config:/config:z + - /media/hda1/jellyfin:/data:z #Access to the entire /media + networks: + - net + restart: unless-stopped + + jackett: + image: lscr.io/linuxserver/jackett:latest + container_name: jackett + environment: + - PUID=1000 + - PGID=1000 + - TZ=Europe/Kiyv + - AUTO_UPDATE=true #optional + - RUN_OPTS= #optional + volumes: + - ./config:/config + - ./blackhole:/downloads + networks: + - net + restart: unless-stopped networks: net: diff --git a/nginx/configs/nginx/conf.d/jackett.conf b/nginx/configs/nginx/conf.d/jackett.conf new file mode 100644 index 0000000..2ce4fe0 --- /dev/null +++ b/nginx/configs/nginx/conf.d/jackett.conf @@ -0,0 +1,17 @@ +server { + listen 80; + listen [::]:80; + + server_name jackett.homeserver.local; + + location / { + proxy_pass http://jackett:9117; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection keep-alive; + proxy_cache_bypass $http_upgrade; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-Host $http_host; + } +} diff --git a/nginx/configs/nginx/conf.d/radarr.conf b/nginx/configs/nginx/conf.d/radarr.conf new file mode 100644 index 0000000..3d5c698 --- /dev/null +++ b/nginx/configs/nginx/conf.d/radarr.conf @@ -0,0 +1,20 @@ +server { + listen 80; + listen [::]:80; + + server_name radarr.homeserver.local; + + location / { + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Host $host; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $http_connection; + + proxy_redirect off; + proxy_http_version 1.1; + + proxy_pass http://radarr:7878; + } +} diff --git a/nginx/configs/nginx/conf.d/sonarr.conf b/nginx/configs/nginx/conf.d/sonarr.conf new file mode 100644 index 0000000..3f2004b --- /dev/null +++ b/nginx/configs/nginx/conf.d/sonarr.conf @@ -0,0 +1,20 @@ +server { + listen 80; + listen [::]:80; + + server_name sonarr.homeserver.local; + + location / { + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Host $host; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $http_connection; + + proxy_redirect off; + proxy_http_version 1.1; + + proxy_pass http://sonarr:8989; + } +} diff --git a/transmission/docker-compose.yaml b/transmission/docker-compose.yaml index c0fcfec..213685b 100644 --- a/transmission/docker-compose.yaml +++ b/transmission/docker-compose.yaml @@ -8,12 +8,12 @@ services: - TZ=Etc/UTC volumes: - ./data:/config - - /media/hda1/Torrents:/downloads/torrents - - /media/hda1/jellyfin:/downloads/complete/jellyfin:rw - ports: - - 9091:9091 - - 51413:51413 - - 51413:51413/udp + - /media/hda1/Torrents:/downloads + - /media/hda1/jellyfin:/downloads/jellyfin:rw + #ports: + # - 9091:9091 + # - 51413:51413 + # - 51413:51413/udp networks: - net restart: unless-stopped