Update docker-compose to v3.9 and add profile

This commit is contained in:
Navratan Lal Gupta 2022-08-09 11:52:17 +00:00
parent 416d2b1981
commit 66bd0feae8
4 changed files with 43 additions and 43 deletions

View File

@ -6,10 +6,9 @@ If transmission is chosen, Uncomment transmission service in docker-compose.yml
- Run below commands - Run below commands
``` ```
bash pre-deploy.sh docker network create mynetwork
docker-compose up -d docker-compose --profile v2.0 up -d
docker-compose -f docker-compose-nginx.yml up -d # OPTIONAL docker-compose -f docker-compose-nginx.yml up -d # OPTIONAL
bash post-deploy.sh
``` ```
# Configure Transmission / qBittorrent # Configure Transmission / qBittorrent

View File

@ -1,35 +1,35 @@
version: '2' version: "3.9"
name: media-stack name: media-stack
services: 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 ## ## Default credentials - Username: admin password: adminadmin ##
## Change password after install from UI --> Tools --> Options --> WebUI ## ## Change password after install from UI --> Tools --> Options --> WebUI ##
qbittorrent: qbittorrent:
container_name: qbittorrent container_name: qbittorrent
profiles:
- v2.0
image: lscr.io/linuxserver/qbittorrent:4.4.3.1-r1-ls209 image: lscr.io/linuxserver/qbittorrent:4.4.3.1-r1-ls209
networks: networks:
- mynetwork - mynetwork
@ -47,6 +47,9 @@ services:
- 6881:6881/udp - 6881:6881/udp
restart: "unless-stopped" restart: "unless-stopped"
radarr: radarr:
profiles:
- v1.0
- v2.0
container_name: radarr container_name: radarr
image: lscr.io/linuxserver/radarr:4.1.0.6175-ls146 image: lscr.io/linuxserver/radarr:4.1.0.6175-ls146
networks: networks:
@ -63,6 +66,9 @@ services:
restart: "unless-stopped" restart: "unless-stopped"
sonarr: sonarr:
profiles:
- v1.0
- v2.0
image: lscr.io/linuxserver/sonarr:3.0.8.1507-ls150 image: lscr.io/linuxserver/sonarr:3.0.8.1507-ls150
container_name: sonarr container_name: sonarr
networks: networks:
@ -73,12 +79,15 @@ services:
- TZ=UTC - TZ=UTC
volumes: volumes:
- sonarr-config:/config - sonarr-config:/config
- torrent-downloads:/downloads #optional - torrent-downloads:/downloads
ports: ports:
- 8989:8989 - 8989:8989
restart: unless-stopped restart: unless-stopped
jackett: jackett:
profiles:
- v1.0
- v2.0
container_name: jackett container_name: jackett
image: lscr.io/linuxserver/jackett:v0.20.1426-ls74 image: lscr.io/linuxserver/jackett:v0.20.1426-ls74
networks: networks:
@ -95,6 +104,9 @@ services:
restart: unless-stopped restart: unless-stopped
jellyfin: jellyfin:
profiles:
- v1.0
- v2.0
image: lscr.io/linuxserver/jellyfin:10.8.1-1-ls171 image: lscr.io/linuxserver/jellyfin:10.8.1-1-ls171
container_name: jellyfin container_name: jellyfin
networks: networks:
@ -110,7 +122,7 @@ services:
# - /dev/videoN:/dev/videoN # Mount GPU device # - /dev/videoN:/dev/videoN # Mount GPU device
ports: ports:
- 8096:8096 - 8096:8096
- 7359:7359/udp #optional - 7359:7359/udp
- 8920:8920 - 8920:8920
restart: unless-stopped restart: unless-stopped
@ -122,9 +134,8 @@ volumes:
jackett-blackhole: jackett-blackhole:
jellyfin-config: jellyfin-config:
qbittorrent-config: qbittorrent-config:
## If transmission is enabled, Uncomment below volumes ## tx-config:
# tx-config: tx-watch:
# tx-watch:
networks: networks:
mynetwork: mynetwork:

View File

@ -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

View File

@ -1,3 +0,0 @@
#!/usr/bin/env bash
docker network ls | grep -i mynetwork || docker network create mynetwork # Create network if not already exist