18 lines
391 B
Bash

#!/usr/bin/env bash
set -euo pipefail
# Always execute relative to this script directory
cd "$(dirname "$0")"
REGISTRY="docker-registry.dev.home:5000"
IMAGE="newtube-angular:latest"
# Pull latest image from private registry
docker image pull "${REGISTRY}/${IMAGE}"
# Restart stack with the current compose file
docker compose down
docker compose up -d
echo "Stack updated and running."