Skip to content

Instantly share code, notes, and snippets.

@Senya247

Senya247/.env Secret

Last active June 24, 2023 10:54
Show Gist options
  • Save Senya247/74d3d213db6e8fcebcd9dba3ffda5fba to your computer and use it in GitHub Desktop.
Save Senya247/74d3d213db6e8fcebcd9dba3ffda5fba to your computer and use it in GitHub Desktop.
# Timezone, https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
TZ=Asia/Kolkata
# UNIX PUID and PGID, find with: id $USER
PUID=1000
PGID=1000
# The directory where data and configuration will be stored.
ROOT=<your root folder in quotes>
cd ${ROOT}
mkdir -p config media torrents
mkdir -p config/deluge config/jellyfin config/radarr config/sonarr
mkdir -p media/movies media/tv
mkdir -p torrents/complete torrents/incomplete torrents/torrent_files
touch docker-compose.yml .env
sudo add-apt-repository ppa:deluge-team/stable
sudo apt-get update
sudo apt-get install deluge-gtk
version: "3.2"
services:
deluge:
container_name: deluge
image: linuxserver/deluge:latest
restart: always
logging:
driver: json-file
network_mode: host
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
volumes:
- ${ROOT}/config/deluge:/config
- ${ROOT}:/data
radarr:
container_name: radarr
image: linuxserver/radarr:latest
restart: always
logging:
driver: json-file
network_mode: host
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
volumes:
- /etc/localtime:/etc/localtime:ro
- ${ROOT}/config/radarr:/config
- ${ROOT}:/data
sonarr:
container_name: sonarr
image: linuxserver/sonarr:latest
restart: always
logging:
driver: json-file
network_mode: host
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
volumes:
- /etc/localtime:/etc/localtime:ro
- ${ROOT}/config/sonarr:/config
- ${ROOT}:/data
jellyfin:
container_name: jellyfin
image: linuxserver/jellyfin:latest
restart: always
network_mode: host
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
volumes:
- ${ROOT}/config/jellyfin/db:/config
- ${ROOT}/media:/data
- /dev/shm/jellyfin:/transcode
/dev/disk/by-uuid/A89E4BAF9E4B753A /mnt/2\040TB\040Hard\040Disk auto nosuid,nodev,nofail,x-gvfs-show,x-gvfs-name=2%20TB%20Hard%20Disk 0 0
cd ${ROOT} && docker compose down && docker compose up -d --remove-orphans
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment