diun with compose keeps on restarting #1103
-
|
I have just tried to setup diun with the latest version and docker compose: services:
diun:
image: crazymax/diun:latest
command: serve
volumes:
- "./data:/data"
- "./diun.yml:/diun.yml:ro"
- "/var/run/docker.sock:/var/run/docker.sock"
environment:
- "TZ=Europe/London"
- "LOG_LEVEL=debug"
- "LOG_JSON=false"
restart: alwaysAnd: providers:
docker:
watchStopped: true
watchByDefault: true
watch:
firstCheckNotif: true
regopts:
- name: "docker.io"
selector: image
username: ######
password: ######
notif:
telegram:
token: ######
chatIDs:
- "######"I've obscured some of my values in the config above, but essentially I received the first notification, but then the container appears to exit and then compose keeps restarting it. In the logs it says: I'm at a loss - I've not seen others experiencing this by searching GitHub issues and discussions... and I can't see anything obvious. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Did you ever solve this? I'm having the same issue on Docker Swarm using stacks (similar to compose). Can't find any mention of anyone else having this problem anywhere. |
Beta Was this translation helpful? Give feedback.
@punkfairie - I just ran into this issue as well and I don't know if @davidwinter figured it out, but I had to add:
- DIUN_WATCH_SCHEDULE=0 */6 * * *to my compose file under environment. I think what might be happening is that its just loop checking and then crashes without some sort of schedule. Seems a default schedule would be ideal? The documentation does include this in the example: https://crazymax.dev/diun/install/docker/
I had also added:
to my environment variables but I don't think that is relevant to this issue.