depends_on postgres -> db

This commit is contained in:
niten 2023-07-26 11:08:37 -07:00
parent 53362aa562
commit 49fde399ce
1 changed files with 3 additions and 3 deletions

View File

@ -218,7 +218,7 @@ in {
"CMD-SHELL" "CMD-SHELL"
"wget -q --spider --proxy=off localhost:3000/health || exit 1" "wget -q --spider --proxy=off localhost:3000/health || exit 1"
]; ];
depends_on = [ "postgres" "redis" ]; depends_on = [ "db" "redis" ];
networks = [ "internal_network" "external_network" ]; networks = [ "internal_network" "external_network" ];
user = mkUserMap cfg.uids.mastodon; user = mkUserMap cfg.uids.mastodon;
}; };
@ -231,7 +231,7 @@ in {
"CMD-SHELL" "CMD-SHELL"
"wget -q --spider --proxy=off localhost:4000/api/v1/streaming/health || exit 1" "wget -q --spider --proxy=off localhost:4000/api/v1/streaming/health || exit 1"
]; ];
depends_on = [ "postgres" "redis" ]; depends_on = [ "db" "redis" ];
networks = [ "internal_network" "external_network" ]; networks = [ "internal_network" "external_network" ];
}; };
sidekiq.service = { sidekiq.service = {
@ -242,7 +242,7 @@ in {
command = "bundle exec sidekiq"; command = "bundle exec sidekiq";
healthcheck.test = healthcheck.test =
[ "CMD-SHELL" "ps aux | grep '[s]idekiq 6' || false" ]; [ "CMD-SHELL" "ps aux | grep '[s]idekiq 6' || false" ];
depends_on = [ "postgres" "redis" ]; depends_on = [ "db" "redis" ];
networks = [ "internal_network" "external_network" ]; networks = [ "internal_network" "external_network" ];
user = mkUserMap cfg.uids.mastodon; user = mkUserMap cfg.uids.mastodon;
}; };