mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-21 03:42:24 +02:00
git-subtree-dir: foundations/net git-subtree-mainline:2b0d510202git-subtree-split:7722c95341
20 lines
424 B
Bash
Executable File
20 lines
424 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
docker compose -p sanity kill
|
|
docker compose -p sanity down --volumes
|
|
docker compose -p sanity up -d --force-recreate --renew-anon-volumes
|
|
|
|
docker_exit=$?
|
|
if [ ${docker_exit} -eq 0 ]; then
|
|
echo "Container started successfully"
|
|
else
|
|
echo "Container started with errors"
|
|
exit ${docker_exit}
|
|
fi
|
|
|
|
if [ "x$DO_CLEAN" == 'xtrue' ]; then
|
|
echo 'Do docker Clean'
|
|
docker system prune -a -f
|
|
fi
|
|
|