Does this work? Wait for postgres healthy
This commit is contained in:
parent
054b6f792c
commit
095ee19297
|
@ -38,7 +38,8 @@ let
|
||||||
hostname = "lemmy";
|
hostname = "lemmy";
|
||||||
env_file = [ lemmyCfg.envFile ];
|
env_file = [ lemmyCfg.envFile ];
|
||||||
volumes = [ "${lemmyCfg.configFile}:/config/config.hjson:ro,Z" ];
|
volumes = [ "${lemmyCfg.configFile}:/config/config.hjson:ro,Z" ];
|
||||||
depends_on = [ "postgres" "pictrs" ];
|
depends_on =
|
||||||
|
[ { "postgres".condition = "service_healthy"; } "pictrs" ];
|
||||||
restart = "always";
|
restart = "always";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue