From 095ee192977a14b0d044b8fcccebc6f83bfd5103 Mon Sep 17 00:00:00 2001 From: niten Date: Thu, 12 Oct 2023 13:11:58 -0700 Subject: [PATCH] Does this work? Wait for postgres healthy --- lemmy-docker.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lemmy-docker.nix b/lemmy-docker.nix index 7d373cf..21a5580 100644 --- a/lemmy-docker.nix +++ b/lemmy-docker.nix @@ -38,7 +38,8 @@ let hostname = "lemmy"; env_file = [ lemmyCfg.envFile ]; volumes = [ "${lemmyCfg.configFile}:/config/config.hjson:ro,Z" ]; - depends_on = [ "postgres" "pictrs" ]; + depends_on = + [ { "postgres".condition = "service_healthy"; } "pictrs" ]; restart = "always"; }; };