commit 1e3f49b4693cba93f01cbe0b0050c44ee3762fa3 Author: Elias Ahokas Date: Mon Nov 24 16:50:56 2025 +0200 add services diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..2e95388 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,17 @@ +name: deploy media services + +on: + push: + branches: [main] + workflow_dispatch: + +jobs: + deploy: + runs-on: z420 + steps: + - name: deploy + run: | + cd /home/sirian/services/media + git pull origin main + docker compose pull + docker compose up -d --remove-orphans diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2eea525 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.env \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..9494125 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,97 @@ +services: + jellyfin: + image: jellyfin/jellyfin:latest + container_name: jellyfin + network_mode: 'host' + runtime: nvidia + deploy: + resources: + reservations: + devices: + - driver: nvidia + count: all + capabilities: [gpu] + volumes: + - /var/lib/z420/jelyfin_config:/config + - /var/lib/z420/jellyfin_cache:/cache + - /mnt/piratointi:/media + - /mnt/teranenx2:/media1 + restart: unless-stopped + environment: + - TZ=Europe/Helsinki + - NVIDIA_VISIBLE_DEVICES=all + - NVIDIA_DRIVER_CAPABILITIES=all + qbittorrent: + image: linuxserver/qbittorrent + container_name: qbittorrent + environment: + - WEBUI_PORT=8080 + - PUID=1000 + - PGID=1000 + - TZ=Europe/Helsinki + volumes: + - /var/lib/z420/qbittorrent_config:/config + - /mnt/piratointi:/data + - /mnt/teranenx2:data1 + network_mode: "service:gluetun" + restart: unless-stopped + + bazarr: + image: lscr.io/linuxserver/bazarr:latest + container_name: bazarr + environment: + - PUID=1000 + - GPID=1000 + - TZ=Europe/Helsinki + volumes: + - /var/lib/z420/bazarr_config:/config + - /mnt/piratointi:/data + network_mode: "service:gluetun" + restart: unless-stopped + + sonarr: + image: lscr.io/linuxserver/sonarr:latest + container_name: sonarr + environment: + - PUID=1000 + - PGID=1000 + - TZ=Europe/Helsinki + volumes: + - /var/lib/z420/sonarr_data:/config + - /mnt/piratointi:/data + network_mode: "service:gluetun" + restart: unless-stopped + + radarr: + image: lscr.io/linuxserver/radarr:latest + container_name: radarr + environment: + - PUID=1000 + - PGID=1000 + - TZ=Europe/Helsinki + volumes: + - /var/lib/z420/radarr_data:/config + - /mnt/piratointi:/data + network_mode: "service:gluetun" + restart: unless-stopped + + gluetun: + image: qmcgaw/gluetun + container_name: gluetun + cap_add: + - NET_ADMIN + devices: + - /dev/net/tun + environment: + - VPN_SERVICE_PROVIDER=protonvpn + - VPN_TYPE=wireguard + - WIREGUARD_PRIVATE_KEY={WIREGUARD_PRIVATE_KEY} + - SERVER_COUNTRIES=Estonia + - PORT_FORWARD_ONLY=on + - VPN_PORT_FORWARDING=on + - VPN_PORT_FORWARDING_UP_COMMAND=/bin/sh -c 'wget -O- --retry-connrefused --post-data "json={\"listen_port\":{{PORTS}}}" http://127.0.0.1:8080/api/v2/app/setPreferences 2>&1' + ports: + - 8080:8080 + - 6767:6767 + - 8989:8989 + - 7878:7878 \ No newline at end of file