mirror of
https://github.com/documenso/documenso.git
synced 2025-11-14 16:51:38 +10:00
feat: add down flag for stopping environment
This commit is contained in:
@ -28,6 +28,12 @@ pushd "$MONOREPO_ROOT" >/dev/null
|
|||||||
# On failure popd back to the original directory
|
# On failure popd back to the original directory
|
||||||
trap "popd >/dev/null" EXIT
|
trap "popd >/dev/null" EXIT
|
||||||
|
|
||||||
|
# If we have received the -down or -d flag, stop the containers
|
||||||
|
if [ "$1" = "-down" ] || [ "$1" = "-d" ]; then
|
||||||
|
docker-compose -f "$MONOREPO_ROOT/docker/compose-without-app.yml" down
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
docker-compose -f "$MONOREPO_ROOT/docker/compose-without-app.yml" up -d
|
docker-compose -f "$MONOREPO_ROOT/docker/compose-without-app.yml" up -d
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
|
|||||||
Reference in New Issue
Block a user