Is the error in the healthcheck?
This commit is contained in:
parent
5836d356f1
commit
da6f4a0999
|
@ -129,7 +129,7 @@ in {
|
|||
type = str;
|
||||
description = "Docker image to use for Mastodon.";
|
||||
default =
|
||||
"ghcr.io/tootsuite/mastodon:${toplevel.config.services.mastodonContainer.version}";
|
||||
"ghcr.io//mastodon:${toplevel.config.services.mastodonContainer.version}";
|
||||
};
|
||||
|
||||
postgres = mkOption {
|
||||
|
@ -307,10 +307,10 @@ in {
|
|||
# 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"
|
||||
];
|
||||
# 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;
|
||||
|
|
Loading…
Reference in New Issue