From ea14742842f38d9140ae5ddaa8afa8d2af72da80 Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Thu, 7 Jul 2022 14:43:01 +0200 Subject: [PATCH] Updated deploy script --- deploy | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/deploy b/deploy index b832fd8..a1630ef 100755 --- a/deploy +++ b/deploy @@ -2,11 +2,13 @@ set -eux -CONTAINER_NAME="phc/storage" +IMAGE_NAME="phc/storage" +CONTAINER_NAME="storage" + HOST_PORT="4000" git pull -docker build -t "$CONTAINER_NAME" . +docker build -t "$IMAGE_NAME" . docker stop "$CONTAINER_NAME" -docker run --rm -d --restart unless-stopped -p "$HOST_PORT:4000" "$CONTAINER_NAME" +docker run --rm -d --name "$CONTAINER_NAME" --restart unless-stopped -p "$HOST_PORT:4000" "$IMAGE_NAME"