Final Push

This commit is contained in:
root 2026-04-01 03:56:57 +02:00
parent d9a1697bd1
commit 7dbe0d81fa
4 changed files with 34 additions and 9 deletions

View File

@ -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."

View File

@ -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."

View File

@ -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"

View File

@ -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