General deployment #1

Merged
carsten merged 18 commits from deploy into main 2023-09-13 22:33:47 +02:00
3 changed files with 10 additions and 3 deletions
Showing only changes of commit 8466de5fe3 - Show all commits

View file

@ -11,11 +11,9 @@ services:
hostname: watchtower hostname: watchtower
domainname: ${BASE_DOMAIN} domainname: ${BASE_DOMAIN}
environment: environment:
# for testing:
- WATCHTOWER_MONITOR_ONLY=true
- TZ=${TIMEZONE} - TZ=${TIMEZONE}
- WATCHTOWER_SCHEDULE=0 0 4 * * * - WATCHTOWER_SCHEDULE=0 0 4 * * *
- WATCHTOWER_CLEANUP="true"
- WATCHTOWER_NOTIFICATIONS=email - WATCHTOWER_NOTIFICATIONS=email
- WATCHTOWER_NOTIFICATION_EMAIL_FROM=watchtower@${BASE_DOMAIN} - WATCHTOWER_NOTIFICATION_EMAIL_FROM=watchtower@${BASE_DOMAIN}

View file

@ -192,3 +192,9 @@ https://wiki.alpinelinux.org/wiki/Docker
rc-update add docker rc-update add docker
service docker start service docker start
``` ```
### cron
```sh
cp -r /opt/container-server/setup/cron/* /etc/periodic/
```

3
setup/cron/weekly/docker-prune Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
docker system prune --all --volumes --force | tail -n 1 && df -h | grep -v overlay