14 lines
310 B
Bash
Executable file
14 lines
310 B
Bash
Executable file
#!/bin/bash
|
|
|
|
cd ..
|
|
echo "Shutting down any instance still running..."
|
|
docker compose down
|
|
echo "Removing DB volume..."
|
|
PROJNAME=$(basename $PWD)
|
|
docker volume rm -f "${PROJNAME}_postgresdb-data"
|
|
echo "Rebuilding the DB image..."
|
|
docker compose pull db
|
|
docker compose build --no-cache db
|
|
cd docker
|
|
echo "Done!"
|