Keep web alive to run db migrate
This commit is contained in:
parent
47ee0801eb
commit
2f243f97e4
|
@ -302,12 +302,14 @@ 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 = ''
|
# Keep the container running so we can pop in and migrate
|
||||||
bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"'';
|
command = ''bash -c "while :; do 'hit ctrl-c!'; sleep 1; done"'';
|
||||||
healthcheck.test = [
|
# command = ''
|
||||||
"CMD-SHELL"
|
# bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"'';
|
||||||
"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" ];
|
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