Updated deploy script

main
Antonio De Lucreziis 2 years ago
parent 58a41a2321
commit e122d859b7

@ -11,4 +11,10 @@ git pull
docker build -t "$IMAGE_NAME" .
docker stop "$CONTAINER_NAME" || true
docker run -d --name "$CONTAINER_NAME" --restart unless-stopped -p "$HOST_PORT:4000" "$IMAGE_NAME"
docker run -d \
--name "$CONTAINER_NAME" \
--restart unless-stopped \
-p "$HOST_PORT:4000" \
-v "$(pwd)/buckets:/app/buckets" \
-v "$(pwd)/database.local.json:/app/database.local.json" \
"$IMAGE_NAME"

Loading…
Cancel
Save