mirror of
https://github.com/runcitadel/core.git
synced 2024-09-23 01:30:23 +00:00
Restart API on first boot
This commit is contained in:
parent
663d294d02
commit
2942d9e55f
|
@ -137,6 +137,18 @@ if [[ "$FIRST_BOOT" == "true" ]]; then
|
|||
echo "Restarting Caddy..."
|
||||
echo
|
||||
docker restart caddy
|
||||
echo
|
||||
echo "Stopping API..."
|
||||
echo
|
||||
docker stop api || true
|
||||
docker rm api || true
|
||||
echo
|
||||
echo "Starting containers again..."
|
||||
echo
|
||||
docker compose up --detach --build --remove-orphans || {
|
||||
echo "Failed to start containers"
|
||||
exit 1
|
||||
}
|
||||
fi
|
||||
|
||||
echo
|
||||
|
|
Loading…
Reference in New Issue
Block a user