mirror of
https://github.com/juspay/services-flake.git
synced 2024-11-05 03:56:16 +03:00
15 lines
371 B
Nix
15 lines
371 B
Nix
{ pkgs, config, ... }: {
|
|
services.elasticsearch."es1".enable = true;
|
|
settings.processes.test =
|
|
{
|
|
command = pkgs.writeShellApplication {
|
|
runtimeInputs = [ pkgs.curl ];
|
|
text = ''
|
|
curl 127.0.0.1:9200/_cat/health
|
|
'';
|
|
name = "elasticsearch-test";
|
|
};
|
|
depends_on."es1".condition = "process_healthy";
|
|
};
|
|
}
|