docker-reset: add detach arg for demo deployment
This commit is contained in:
parent
e96afda483
commit
b47b5d3b4b
|
@ -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 "${@}"
|
||||
|
|
Loading…
Reference in New Issue