From 22d8b1e822a2c4bc0ba6383dc67aec3adaf13c73 Mon Sep 17 00:00:00 2001 From: "nadeko.net Selfhost" Date: Sat, 11 May 2024 01:02:45 -0400 Subject: [PATCH] Restart the invidious process every hour because IT TAKES A LOT OF RAM IF YOU DON'T RESTART IT --- docker-compose.yml | 6 ++++++ 1 file changed, 6 insertions(+) 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