fix restart optiosn

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
ahuston-0 2024-06-29 11:15:51 -04:00
parent dd8e8d2af5
commit 898379ab13
No known key found for this signature in database
GPG Key ID: 1FACF4075E3212F7
2 changed files with 8 additions and 8 deletions

View File

@ -18,21 +18,18 @@ in
"9999:80" "9999:80"
]; ];
restart = "unless-stopped";
volumes = [ volumes = [
"/ZFS/ZFS-primary/nextcloud/nc_data:/var/www/html:z" "/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_php:/usr/local/etc/php"
"/ZFS/ZFS-primary/nextcloud/nc_prehooks:/docker-entrypoint-hooks.d/before-starting" "/ZFS/ZFS-primary/nextcloud/nc_prehooks:/docker-entrypoint-hooks.d/before-starting"
]; ];
extraOptions = [ extraOptions = [
"--restart=unless-stopped"
"--network=haproxy-net" "--network=haproxy-net"
"--network=postgres-net" "--network=postgres-net"
"--network=nextcloud_default" "--network=nextcloud_default"
]; ];
dependsOn = [ dependsOn = [ "redis" ];
"redis"
];
}; };
}; };
} }

View File

@ -21,9 +21,9 @@
"--health-timeout=5s" "--health-timeout=5s"
"--health-retries=15" "--health-retries=15"
"--shm-size=1gb" "--shm-size=1gb"
"--restart=always"
]; ];
environmentFiles = [ config.sops.secrets."docker/pg".path ]; environmentFiles = [ config.sops.secrets."docker/pg".path ];
restart = "always";
}; };
postgres-secondary = { postgres-secondary = {
@ -41,9 +41,9 @@
"--health-timeout=5s" "--health-timeout=5s"
"--health-retries=15" "--health-retries=15"
"--shm-size=1gb" "--shm-size=1gb"
"--restart=always"
]; ];
environmentFiles = [ config.sops.secrets."docker/pg".path ]; environmentFiles = [ config.sops.secrets."docker/pg".path ];
restart = "always";
}; };
postgres-adminer = { postgres-adminer = {
@ -52,7 +52,10 @@
restart = "always"; restart = "always";
ports = [ "4191:8080" ]; ports = [ "4191:8080" ];
dependsOn = [ "postgres" ]; dependsOn = [ "postgres" ];
extraOptions = [ "--network=postgres-net" ]; extraOptions = [
"--restart=always"
"--network=postgres-net"
];
}; };
}; };
sops = { sops = {