From e7611c37bf4936f53f82cc6ac0d54ac54069f49e Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Thu, 7 Jul 2022 14:39:14 +0200 Subject: [PATCH] Updated deploy script --- deploy | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"