Files
hcrb/deploy/update-docker.sh
T
2026-10-10 14:16:09 +02:00

13 lines
333 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# Neue Version einspielen (Docker) – auf dem Server ausführen: <projektordner>/deploy/update-docker.sh
# Die Daten in data/ bleiben dabei unberührt.
set -euo pipefail
cd "$(dirname "$(readlink -f "$0")")/.."
git pull --ff-only
docker compose up -d --build
docker image prune -f >/dev/null
sleep 3
docker compose ps