mirror of
https://github.com/tborychowski/self-hosted-cookbook.git
synced 2025-12-20 02:51:14 +00:00
dwnld
This commit is contained in:
56
apps/docker/diun.md
Normal file
56
apps/docker/diun.md
Normal file
@@ -0,0 +1,56 @@
|
||||
# Diun
|
||||
- Monitor docker images and check for updates.
|
||||
- too many (ugly) notifications
|
||||
- doesn't auto update, only monitors
|
||||
|
||||
<br>
|
||||
|
||||
- [Github repo](https://github.com/crazy-max/diun)
|
||||
- [DockerHub repo](https://hub.docker.com/r/crazymax/diun/)
|
||||
- [Docs](https://crazymax.dev/diun/)
|
||||
|
||||
|
||||
## docker-compose.yml
|
||||
```yml
|
||||
---
|
||||
version: "3.2"
|
||||
services:
|
||||
diun:
|
||||
image: crazymax/diun:latest
|
||||
container_name: diun
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- "TZ=Europe/Dublin"
|
||||
- "LOG_LEVEL=info"
|
||||
- "LOG_JSON=false"
|
||||
volumes:
|
||||
- "./data:/data"
|
||||
- "./diun.yml:/diun.yml:ro"
|
||||
- "/var/run/docker.sock:/var/run/docker.sock"
|
||||
```
|
||||
|
||||
## diun.yml
|
||||
```yml
|
||||
db:
|
||||
path: diun.db
|
||||
|
||||
watch:
|
||||
workers: 10
|
||||
schedule: "0 * * * *"
|
||||
first_check_notif: true
|
||||
|
||||
notif:
|
||||
slack:
|
||||
webhook_url: https://hooks.slack.com/services/a/b/c
|
||||
|
||||
regopts:
|
||||
tom:
|
||||
username: admin
|
||||
password: Passw0rd!
|
||||
timeout: 20
|
||||
|
||||
providers:
|
||||
docker:
|
||||
watch_stopped: false
|
||||
watch_by_default: true
|
||||
```
|
||||
27
apps/docker/watch-tower.md
Normal file
27
apps/docker/watch-tower.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# WatchTower
|
||||
|
||||
- too many notifications
|
||||
- some false positive (thanks to crappy docker-hub api)
|
||||
|
||||
<br>
|
||||
|
||||
- [Github repo](https://github.com/containrrr/watchtower/)
|
||||
- [Docs](https://containrrr.dev/watchtower/)
|
||||
|
||||
|
||||
## docker-compose.yml
|
||||
```yml
|
||||
---
|
||||
version: "3"
|
||||
services:
|
||||
watchtower:
|
||||
image: containrrr/watchtower
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
command: --interval 30
|
||||
environment:
|
||||
- TZ=Europe/Dublin
|
||||
- WATCHTOWER_MONITOR_ONLY=true
|
||||
- WATCHTOWER_NOTIFICATIONS=slack
|
||||
- WATCHTOWER_NOTIFICATION_SLACK_HOOK_URL=https://hooks.slack.com/services/a/b/c
|
||||
```
|
||||
Reference in New Issue
Block a user