From b101480a01aa7f7c9558e19e180dfe7289990d4f Mon Sep 17 00:00:00 2001 From: Bensuperpc Date: Sun, 12 May 2024 12:00:12 +0200 Subject: [PATCH] Improve restart en failure Signed-off-by: Bensuperpc --- docker-compose.adminer.yml | 2 +- docker-compose.backup.yml | 2 +- docker-compose.caddy.yml | 2 +- docker-compose.gitea.yml | 4 ++-- docker-compose.jellyfin.yml | 2 +- docker-compose.openssh.yml | 2 +- docker-compose.qbittorrent.yml | 2 +- docker-compose.syncthing.yml | 2 +- docker-compose.uptime-kuma.yml | 2 +- docker-compose.watchtower.yml | 2 +- docker-compose.wordpress.yml | 4 ++-- 11 files changed, 13 insertions(+), 13 deletions(-) diff --git a/docker-compose.adminer.yml b/docker-compose.adminer.yml index cd77e0d..8853590 100644 --- a/docker-compose.adminer.yml +++ b/docker-compose.adminer.yml @@ -7,7 +7,7 @@ services: container_name: adminer profiles: - adminer - restart: on-failure + restart: on-failure:5 env_file: - env/adminer.env depends_on: diff --git a/docker-compose.backup.yml b/docker-compose.backup.yml index 2e93e05..ac1fdb8 100644 --- a/docker-compose.backup.yml +++ b/docker-compose.backup.yml @@ -7,7 +7,7 @@ services: container_name: backup profiles: - backup - restart: on-failure + restart: on-failure:5 env_file: - env/backup.env volumes: diff --git a/docker-compose.caddy.yml b/docker-compose.caddy.yml index d90e1cb..0aed171 100644 --- a/docker-compose.caddy.yml +++ b/docker-compose.caddy.yml @@ -7,7 +7,7 @@ services: container_name: caddy profiles: - caddy - restart: on-failure + restart: on-failure:5 ports: - 80:80 - 443:443 diff --git a/docker-compose.gitea.yml b/docker-compose.gitea.yml index a59a28f..291c673 100644 --- a/docker-compose.gitea.yml +++ b/docker-compose.gitea.yml @@ -7,7 +7,7 @@ services: container_name: gitea profiles: - gitea - restart: on-failure + restart: on-failure:5 depends_on: - caddy env_file: @@ -31,7 +31,7 @@ services: - gitea depends_on: - gitea - restart: on-failure + restart: on-failure:5 volumes: - gitea_db:/var/lib/mysql:rw env_file: diff --git a/docker-compose.jellyfin.yml b/docker-compose.jellyfin.yml index dbe6e97..693fba2 100644 --- a/docker-compose.jellyfin.yml +++ b/docker-compose.jellyfin.yml @@ -7,7 +7,7 @@ services: container_name: jellyfin profiles: - jellyfin - restart: on-failure + restart: on-failure:5 depends_on: - caddy volumes: diff --git a/docker-compose.openssh.yml b/docker-compose.openssh.yml index ffbe758..9f91d51 100644 --- a/docker-compose.openssh.yml +++ b/docker-compose.openssh.yml @@ -7,7 +7,7 @@ services: container_name: openssh profiles: - openssh - restart: on-failure + restart: on-failure:5 env_file: - env/openssh.env volumes: diff --git a/docker-compose.qbittorrent.yml b/docker-compose.qbittorrent.yml index 52c9d97..7d69f6c 100644 --- a/docker-compose.qbittorrent.yml +++ b/docker-compose.qbittorrent.yml @@ -7,7 +7,7 @@ services: container_name: qbittorrent profiles: - qbittorrent - restart: on-failure + restart: on-failure:5 depends_on: - caddy env_file: diff --git a/docker-compose.syncthing.yml b/docker-compose.syncthing.yml index b4e241c..15b042b 100644 --- a/docker-compose.syncthing.yml +++ b/docker-compose.syncthing.yml @@ -7,7 +7,7 @@ services: container_name: syncthing profiles: - syncthing - restart: on-failure + restart: on-failure:5 env_file: - env/syncthing.env volumes: diff --git a/docker-compose.uptime-kuma.yml b/docker-compose.uptime-kuma.yml index 1f8dc99..9e1a42a 100644 --- a/docker-compose.uptime-kuma.yml +++ b/docker-compose.uptime-kuma.yml @@ -9,7 +9,7 @@ services: - uptime-kuma volumes: - uptimekuma_data:/app/data - restart: on-failure + restart: on-failure:5 networks: - infra-network security_opt: diff --git a/docker-compose.watchtower.yml b/docker-compose.watchtower.yml index 16303d6..0e9a153 100644 --- a/docker-compose.watchtower.yml +++ b/docker-compose.watchtower.yml @@ -7,7 +7,7 @@ services: container_name: watchtower profiles: - watchtower - restart: on-failure + restart: on-failure:5 networks: - infra-network volumes: diff --git a/docker-compose.wordpress.yml b/docker-compose.wordpress.yml index d010a71..a774cc2 100644 --- a/docker-compose.wordpress.yml +++ b/docker-compose.wordpress.yml @@ -7,7 +7,7 @@ services: container_name: wordpress profiles: - wordpress - restart: on-failure + restart: on-failure:5 depends_on: - wordpress_db - caddy @@ -30,7 +30,7 @@ services: - wordpress depends_on: - caddy - restart: on-failure + restart: on-failure:5 volumes: - wordpress_db:/var/lib/mysql:rw env_file: