Back to keeping the server alive to exec
This commit is contained in:
parent
90d8d7776f
commit
91f85cb971
|
@ -303,12 +303,13 @@ in {
|
||||||
"${cfg.state-directory}/mastodon:/mastodon/public/system"
|
"${cfg.state-directory}/mastodon:/mastodon/public/system"
|
||||||
# "${cfg.state-directory}/mastodon-opt:/opt"
|
# "${cfg.state-directory}/mastodon-opt:/opt"
|
||||||
];
|
];
|
||||||
command = ''
|
command = ''bash -c "while :; do echo 'kill me'; sleep 1; done"'';
|
||||||
bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"'';
|
# command = ''
|
||||||
healthcheck.test = [
|
# bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"'';
|
||||||
"CMD-SHELL"
|
# healthcheck.test = [
|
||||||
"wget -q --spider --proxy=off localhost:3000/health || exit 1"
|
# "CMD-SHELL"
|
||||||
];
|
# "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