This commit is contained in:
osconlab 2023-03-29 13:52:57 +02:00
parent aee818bd04
commit 6e059de128
4 changed files with 25 additions and 0 deletions

2
README.md Normal file
View File

@ -0,0 +1,2 @@
# docker
Install files for Docker

2
docker.sh Normal file
View File

@ -0,0 +1,2 @@
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh

8
portainer_agent.sh Normal file
View File

@ -0,0 +1,8 @@
docker run \
-d \
-p 9001:9001 \
--name portainer_agent \
--restart=always \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/lib/docker/volumes:/var/lib/docker/volumes \
portainer/agent:2.17.1

13
watchtower.sh Normal file
View File

@ -0,0 +1,13 @@
docker run -d \
--name watchtower \
--restart=always \
-e TZ=Europe/Copenhagen \
-e WATCHTOWER_CLEANUP=true \
-e WATCHTOWER_INCLUDE_RESTARTING=true \
-e WATCHTOWER_INCLUDE_STOPPED=true \
-e WATCHTOWER_NOTIFICATION_SLACK_CHANNEL=#homelab \
-e WATCHTOWER_NOTIFICATIONS=slack \
-e WATCHTOWER_POLL_INTERVAL=21600 \
-e WATCHTOWER_ROLLING_RESTART=true \
-v /var/run/docker.sock:/var/run/docker.sock \
containrrr/watchtower