docker-reset: add detach arg for demo deployment

This commit is contained in:
pedro 2024-09-26 20:06:37 -03:00
parent e96afda483
commit b47b5d3b4b
1 changed files with 4 additions and 1 deletions

View File

@ -9,11 +9,14 @@ set -u
set -x
main() {
if [ "${DETACH:-}" ]; then
detach_arg='-d'
fi
# remove old database
sudo rm -vf db/*
docker compose down
docker compose build
docker compose up
docker compose up ${detach_arg:-}
}
main "${@}"