Updated deploy script

This commit is contained in:
2022-07-07 14:39:14 +02:00
parent 28feaba860
commit e7611c37bf
+4 -1
View File
@@ -3,7 +3,10 @@
set -eux
CONTAINER_NAME="phc/storage"
HOST_PORT="4000"
git pull
docker build -t "$CONTAINER_NAME" .
docker run --rm -d -p 4000:4000 "$CONTAINER_NAME"
docker stop "$CONTAINER_NAME"
docker run --rm -d --restart unless-stopped -p "$HOST_PORT:4000" "$CONTAINER_NAME"