Update db-backup-standalone.sh to use docker compose
- Replace docker service scale with docker compose stop/start - Update service name from utility-bills-tracker_mongo to mongo - Reference docker-compose-standalone.yaml compose file - Update comments to reflect container operations vs swarm service 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
15
deploy-standalone.sh
Executable file
15
deploy-standalone.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
if [ "$1" == "" ] ; then
|
||||
printf "\nNisi zadao verziju Docker image-a koji treba deployati"
|
||||
printf "\n\nSintaksa:\n\n deploy.sh 1.0.0\n\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
printf "\nBUILD START ...\n\n"
|
||||
|
||||
IMAGE_VERSION=$1
|
||||
|
||||
echo "Deploying $STACK_NAME with image version: $IMAGE_VERSION"
|
||||
|
||||
# Pass IMAGE_VERSION env var for compose variable substitution
|
||||
IMAGE_VERSION="$IMAGE_VERSION" docker compose up -d
|
||||
Reference in New Issue
Block a user