Now that db is init, switch back to normal

This commit is contained in:
niten 2023-08-04 01:32:15 -07:00
parent 91f85cb971
commit 7cb81b595e
1 changed files with 8 additions and 10 deletions

View File

@ -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;