This repository has been archived by the owner on Oct 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathBash.sh
79 lines (65 loc) · 2.77 KB
/
Bash.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/bin/bash
echo "Updating System "
{
apt-get update
apt-get upgrade -y
} &> /dev/null
echo "Installing Docker for you"
{
apt-transport-https ca-certificates curl software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt-get update && apt-get install docker-ce -y
usermod -aG docker ${USER}
cd ~ ; pwd
} &> /dev/null
echo "Installing your new awesome Docker Services"
{
curl -L https://github.com/docker/compose/releases/download/2.11.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo usermod -aG docker ${USER}
mkdir ~/docker
setfacl -Rdm g:docker:rwx ~/docker
chmod -R 775 ~/docker
} &> /dev/null
docker compose -f ~/Media-Server-with-Docker-Ubuntu/docker-compose.yml up -d
echo "Installing Plex "
{
docker run -d --name plex --network=host -e TZ="Europe/London" -v ~/Documents/Docker/plex/database:/config -v ~/Documents/Docker/plex/temp:/transcode -v /:/Data --restart unless-stopped plexinc/pms-docker:latest
}&> /dev/null
echo "Installing Watchtower"
{
docker run -d --name watchtower -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower
}&> /dev/null
echo "Adjusting the firewall"
{
iptables -A INPUT -p tcp -d 0/0 -s 0/0 --dport 32400 -j ACCEPT
}&> /dev/null
echo "Starting her up for you chief"
{
docker start $(docker ps -q)
}&> /dev/null
echo "ALL DONE"
echo "ALL DONE"
echo "ALL DONE"
echo "Your new Docker services are up and running
You can access this from this PC through THE FOLLOWING ADDRESS:
___________________________________________________________________
Portainer: http://127.0.0.1:9000 - Docker Management User Interface.
Plex: http://127.0.0.1:32400/web - Your personal media play.
Sonarr: http://127.0.0.1:8989 - Sonarr is a multi-platform app to search, download, and manage TV shows.
Radarr: http://127.0.0.1:7878 - Like Sonarr but for movies.
qBittorrent: http://127.0.0.1:8086 - qBittorrent is a cross-platform free and open-source BitTorrent client.
SABnzbd: http://127.0.0.1:8888 - SABnzbd is a binary newsgroup downloader. The program simplifies the downloading verifying and extracting of files from Usenet.
Jackett: http://127.0.0.1:9117 - Jackett is a mass torrent indexer scraper.
___________________________________________________________________
If you have installed this on a 'headless pc' or on a VPS you
will be able to access these services from the IP"
(hostname -I | awk '{ print $1 }')
echo "We are finished here, for those that would like to config Rclone
simply type,
sudo rclone config
if you do not know what Rclone is do not worry about it.
Please look at the READ ME file =-)
Happy Watching
"