18 lines
		
	
	
		
			394 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			394 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="obsiviewer-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."
 |