From 7cb81b595e1c5a87ec742cbe7e865e29677ab061 Mon Sep 17 00:00:00 2001 From: niten Date: Fri, 4 Aug 2023 01:32:15 -0700 Subject: [PATCH] Now that db is init, switch back to normal --- mastodon-container.nix | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/mastodon-container.nix b/mastodon-container.nix index f01803f..dcaa7d3 100644 --- a/mastodon-container.nix +++ b/mastodon-container.nix @@ -299,17 +299,15 @@ in { image = cfg.images.mastodon; hostname = "web"; restart = "always"; - volumes = [ - "${cfg.state-directory}/mastodon:/mastodon/public/system" - # "${cfg.state-directory}/mastodon-opt:/opt" + volumes = + [ "${cfg.state-directory}/mastodon:/mastodon/public/system" ]; + # command = ''bash -c "while :; do echo 'kill me'; sleep 1; done"''; + command = '' + bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"''; + healthcheck.test = [ + "CMD-SHELL" + "wget -q --spider --proxy=off localhost:3000/health || exit 1" ]; - command = ''bash -c "while :; do echo 'kill me'; sleep 1; done"''; - # command = '' - # bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"''; - # healthcheck.test = [ - # "CMD-SHELL" - # "wget -q --spider --proxy=off localhost:3000/health || exit 1" - # ]; depends_on = [ "postgres" "redis" ]; networks = [ "internal_network" ]; user = mkUserMap cfg.uids.mastodon;