From 898379ab1366b52a1bc952c13a75325630dcaab1 Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Sat, 29 Jun 2024 11:15:51 -0400 Subject: [PATCH] fix restart optiosn Signed-off-by: ahuston-0 --- systems/palatine-hill/docker/nextcloud.nix | 7 ++----- systems/palatine-hill/docker/postgres.nix | 9 ++++++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/systems/palatine-hill/docker/nextcloud.nix b/systems/palatine-hill/docker/nextcloud.nix index a211deb..bb62438 100644 --- a/systems/palatine-hill/docker/nextcloud.nix +++ b/systems/palatine-hill/docker/nextcloud.nix @@ -18,21 +18,18 @@ in "9999:80" ]; - restart = "unless-stopped"; volumes = [ "/ZFS/ZFS-primary/nextcloud/nc_data:/var/www/html:z" "/ZFS/ZFS-primary/nextcloud/nc_php:/usr/local/etc/php" "/ZFS/ZFS-primary/nextcloud/nc_prehooks:/docker-entrypoint-hooks.d/before-starting" ]; extraOptions = [ + "--restart=unless-stopped" "--network=haproxy-net" "--network=postgres-net" "--network=nextcloud_default" ]; - dependsOn = [ - - "redis" - ]; + dependsOn = [ "redis" ]; }; }; } diff --git a/systems/palatine-hill/docker/postgres.nix b/systems/palatine-hill/docker/postgres.nix index d10b021..f8632f7 100644 --- a/systems/palatine-hill/docker/postgres.nix +++ b/systems/palatine-hill/docker/postgres.nix @@ -21,9 +21,9 @@ "--health-timeout=5s" "--health-retries=15" "--shm-size=1gb" + "--restart=always" ]; environmentFiles = [ config.sops.secrets."docker/pg".path ]; - restart = "always"; }; postgres-secondary = { @@ -41,9 +41,9 @@ "--health-timeout=5s" "--health-retries=15" "--shm-size=1gb" + "--restart=always" ]; environmentFiles = [ config.sops.secrets."docker/pg".path ]; - restart = "always"; }; postgres-adminer = { @@ -52,7 +52,10 @@ restart = "always"; ports = [ "4191:8080" ]; dependsOn = [ "postgres" ]; - extraOptions = [ "--network=postgres-net" ]; + extraOptions = [ + "--restart=always" + "--network=postgres-net" + ]; }; }; sops = {