Does this work? Wait for postgres healthy

This commit is contained in:
niten 2023-10-12 13:11:58 -07:00
parent 054b6f792c
commit 095ee19297
1 changed files with 2 additions and 1 deletions

View File

@ -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";
};
};