From 90d8d7776f38e504759bceee3face65c886a128a Mon Sep 17 00:00:00 2001 From: niten Date: Thu, 3 Aug 2023 23:32:09 -0700 Subject: [PATCH] Maybe the problem is opt... --- mastodon-container.nix | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/mastodon-container.nix b/mastodon-container.nix index 886955d..edb1ad7 100644 --- a/mastodon-container.nix +++ b/mastodon-container.nix @@ -301,15 +301,14 @@ in { restart = "always"; volumes = [ "${cfg.state-directory}/mastodon:/mastodon/public/system" - "${cfg.state-directory}/mastodon-opt:/opt" + # "${cfg.state-directory}/mastodon-opt:/opt" + ]; + 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 'hit ctrl-c!'; 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;