diff --git a/deploy b/deploy index b0d5202..b832fd8 100755 --- a/deploy +++ b/deploy @@ -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"