diff --git a/docker-compose.yml b/docker-compose.yml index fa077f19..2bb8b154 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -54,3 +54,9 @@ services: - invidious ports: - "127.0.0.1:10011:3000" + + restarter: + image: docker:cli + volumes: ["/var/run/docker.sock:/var/run/docker.sock"] + command: ["/bin/sh", "-c", "while true; do sleep 86400; docker compose restart invidious invidious-refresher; done"] + restart: unless-stopped