This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
containers.sh
54 lines (39 loc) · 1.65 KB
/
containers.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
#!/bin/bash
PATH_TO_SCRIPTS="$HOME/bash-nuc"
mkdir $HOME/docker_data
DOCKER_DATA="$HOME/docker_data"
#Installing Watchtower
sudo docker run -d \
--name watchtower \
-v /var/run/docker.sock:/var/run/docker.sock \
containrrr/watchtower:latest \
--run-once \
--cleanup \
--include-restarting \
--include-stopped
echo "================================================================================"
echo "Installing Nginx Proxy Manager"
cd $PATH_TO_SCRIPTS/nginx
sudo USED_DOCKER_DATA=$DOCKER_DATA docker-compose up -d
echo "================================================================================"
echo "Installing Portainer"
cd $PATH_TO_SCRIPTS/portainer
sudo USED_DOCKER_DATA=$DOCKER_DATA docker-compose up -d
echo "================================================================================"
echo "Installing Homarr"
cd $PATH_TO_SCRIPTS/homarr
sudo USED_DOCKER_DATA=$DOCKER_DATA docker-compose up -d
echo "================================================================================"
echo "Installing Uptime-Kuma"
cd $PATH_TO_SCRIPTS/uptime-kuma
sudo USED_DOCKER_DATA=$DOCKER_DATA docker-compose up -d
echo "================================================================================"
echo "Installing Pihole"
cd $PATH_TO_SCRIPTS/pihole
echo "================================================================================"
echo "Please enter a password for the pihole admin panel"
read -s pihole_password
sudo USED_DOCKER_DATA=$DOCKER_DATA USE_PIHOLE_PASSWD=$pihole_password docker-compose up -d
echo "================================================================================"
echo "List all docker running containers"
sudo docker ps