Updated deploy script

main
Antonio De Lucreziis 2 years ago
parent e7611c37bf
commit ea14742842

@ -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"

Loading…
Cancel
Save