Final Push
This commit is contained in:
parent
d9a1697bd1
commit
7dbe0d81fa
@ -1,5 +1,11 @@
|
||||
#!/bin/bash
|
||||
docker network create app-network 2>/dev/null
|
||||
docker volume create mongo-data
|
||||
docker volume create uploads
|
||||
|
||||
echo "Preparing application..."
|
||||
|
||||
docker network create z1_default 2>/dev/null || echo "Network already exists."
|
||||
|
||||
docker volume create z1_mongo-data 2>/dev/null || echo "Volume already exists."
|
||||
|
||||
docker-compose build
|
||||
|
||||
echo "Preparation completed."
|
||||
|
||||
@ -1,4 +1,9 @@
|
||||
#!/bin/bash
|
||||
docker-compose down -v
|
||||
docker system prune -f
|
||||
|
||||
echo "Removing application..."
|
||||
|
||||
docker-compose down -v >/dev/null 2>&1
|
||||
|
||||
docker system prune -f >/dev/null 2>&1
|
||||
|
||||
echo "Application completely removed."
|
||||
|
||||
@ -1,5 +1,11 @@
|
||||
#!/bin/bash
|
||||
docker-compose up -d
|
||||
|
||||
echo "App running at: http://147.232.204.210:8080"
|
||||
echo "Mongo Express: http://147.232.204.210:8081"
|
||||
echo "Starting application..."
|
||||
|
||||
docker-compose up -d --build
|
||||
|
||||
echo "Application is running."
|
||||
echo "Open in browser:"
|
||||
echo "http://147.232.204.210:8080"
|
||||
echo "Mongo Express:"
|
||||
echo "http://147.232.204.210:8081"
|
||||
|
||||
@ -1,2 +1,10 @@
|
||||
#!/bin/bash
|
||||
docker-compose down
|
||||
|
||||
echo "Stopping application..."
|
||||
|
||||
if [ "$(docker ps -q -f name=z1_)" ]; then
|
||||
docker-compose down >/dev/null 2>&1
|
||||
echo "Application stopped successfully."
|
||||
else
|
||||
echo "No running containers found. Nothing to stop."
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user