diff --git a/README.md b/README.md index 59e0117..8f647cf 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,9 @@ If transmission is chosen, Uncomment transmission service in docker-compose.yml - Run below commands ``` -bash pre-deploy.sh -docker-compose up -d +docker network create mynetwork +docker-compose --profile v2.0 up -d docker-compose -f docker-compose-nginx.yml up -d # OPTIONAL -bash post-deploy.sh ``` # Configure Transmission / qBittorrent diff --git a/docker-compose.yml b/docker-compose.yml index 11e0b10..f5f3b8e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,35 +1,35 @@ -version: '2' +version: "3.9" name: media-stack services: + transmission: + profiles: + - v1.0 + container_name: transmission + image: lscr.io/linuxserver/transmission:3.00-r5-ls127 + networks: + - mynetwork + environment: + - PUID=1000 + - PGID=1000 + - TZ=UTC + - USER=admin + - PASS=nimdatx + ports: + - 9091:9091 + - 51413:51413 + - 51413:51413/udp + volumes: + - tx-config:/config + - torrent-downloads:/downloads + - tx-watch:/watch + restart: "unless-stopped" - ## Uncomment to enable transmission as bittorrent client. ## - ## Keep one of qbittorrent or transmission ## - # transmission: - # container_name: transmission - # image: lscr.io/linuxserver/transmission:3.00-r5-ls127 - # networks: - # - mynetwork - # environment: - # - PUID=1000 - # - PGID=1000 - # - TZ=UTC - # - USER=admin - # - PASS=nimdatx - # ports: - # - 9091:9091 - # - 51413:51413 - # - 51413:51413/udp - # volumes: - # - tx-config:/config - # - torrent-downloads:/downloads - # - tx-watch:/watch - # restart: "unless-stopped" - - ## Comment qbittorrent service, if transmission is enabled. ## ## Default credentials - Username: admin password: adminadmin ## ## Change password after install from UI --> Tools --> Options --> WebUI ## qbittorrent: container_name: qbittorrent + profiles: + - v2.0 image: lscr.io/linuxserver/qbittorrent:4.4.3.1-r1-ls209 networks: - mynetwork @@ -47,6 +47,9 @@ services: - 6881:6881/udp restart: "unless-stopped" radarr: + profiles: + - v1.0 + - v2.0 container_name: radarr image: lscr.io/linuxserver/radarr:4.1.0.6175-ls146 networks: @@ -63,6 +66,9 @@ services: restart: "unless-stopped" sonarr: + profiles: + - v1.0 + - v2.0 image: lscr.io/linuxserver/sonarr:3.0.8.1507-ls150 container_name: sonarr networks: @@ -73,12 +79,15 @@ services: - TZ=UTC volumes: - sonarr-config:/config - - torrent-downloads:/downloads #optional + - torrent-downloads:/downloads ports: - 8989:8989 restart: unless-stopped jackett: + profiles: + - v1.0 + - v2.0 container_name: jackett image: lscr.io/linuxserver/jackett:v0.20.1426-ls74 networks: @@ -95,6 +104,9 @@ services: restart: unless-stopped jellyfin: + profiles: + - v1.0 + - v2.0 image: lscr.io/linuxserver/jellyfin:10.8.1-1-ls171 container_name: jellyfin networks: @@ -110,7 +122,7 @@ services: # - /dev/videoN:/dev/videoN # Mount GPU device ports: - 8096:8096 - - 7359:7359/udp #optional + - 7359:7359/udp - 8920:8920 restart: unless-stopped @@ -122,9 +134,8 @@ volumes: jackett-blackhole: jellyfin-config: qbittorrent-config: - ## If transmission is enabled, Uncomment below volumes ## - # tx-config: - # tx-watch: + tx-config: + tx-watch: networks: mynetwork: diff --git a/post-deploy.sh b/post-deploy.sh deleted file mode 100755 index 509373f..0000000 --- a/post-deploy.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/usr/bin/env bash - -docker exec -it transmission mkdir -p /downloads/movies -docker exec -it transmission chown -R 1000:1000 /downloads/movies - -docker exec -it transmission mkdir -p /downloads/tvshows -docker exec -it transmission chown -R 1000:1000 /downloads/tvshows \ No newline at end of file diff --git a/pre-deploy.sh b/pre-deploy.sh deleted file mode 100644 index 861d461..0000000 --- a/pre-deploy.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash - -docker network ls | grep -i mynetwork || docker network create mynetwork # Create network if not already exist \ No newline at end of file