- 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>
15 lines
405 B
Bash
Executable File
15 lines
405 B
Bash
Executable File
#!/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 |