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
|
set -x
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
|
if [ "${DETACH:-}" ]; then
|
||||||
|
detach_arg='-d'
|
||||||
|
fi
|
||||||
# remove old database
|
# remove old database
|
||||||
sudo rm -vf db/*
|
sudo rm -vf db/*
|
||||||
docker compose down
|
docker compose down
|
||||||
docker compose build
|
docker compose build
|
||||||
docker compose up
|
docker compose up ${detach_arg:-}
|
||||||
}
|
}
|
||||||
|
|
||||||
main "${@}"
|
main "${@}"
|
||||||
|
|
Loading…
Reference in New Issue