Is the error in the healthcheck?
This commit is contained in:
parent
5836d356f1
commit
da6f4a0999
|
@ -129,7 +129,7 @@ in {
|
||||||
type = str;
|
type = str;
|
||||||
description = "Docker image to use for Mastodon.";
|
description = "Docker image to use for Mastodon.";
|
||||||
default =
|
default =
|
||||||
"ghcr.io/tootsuite/mastodon:${toplevel.config.services.mastodonContainer.version}";
|
"ghcr.io//mastodon:${toplevel.config.services.mastodonContainer.version}";
|
||||||
};
|
};
|
||||||
|
|
||||||
postgres = mkOption {
|
postgres = mkOption {
|
||||||
|
@ -307,10 +307,10 @@ in {
|
||||||
# command = ''bash -c "while :; do 'hit ctrl-c!'; sleep 1; done"'';
|
# command = ''bash -c "while :; do 'hit ctrl-c!'; sleep 1; done"'';
|
||||||
command = ''
|
command = ''
|
||||||
bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"'';
|
bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"'';
|
||||||
healthcheck.test = [
|
# healthcheck.test = [
|
||||||
"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 = [ "postgres" "redis" ];
|
||||||
networks = [ "internal_network" ];
|
networks = [ "internal_network" ];
|
||||||
user = mkUserMap cfg.uids.mastodon;
|
user = mkUserMap cfg.uids.mastodon;
|
||||||
|
|
Loading…
Reference in New Issue