General deployment #1
3 changed files with 10 additions and 3 deletions
|
@ -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}
|
||||||
|
|
|
@ -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
3
setup/cron/weekly/docker-prune
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
docker system prune --all --volumes --force | tail -n 1 && df -h | grep -v overlay
|
Loading…
Reference in a new issue