From e122d859b70c532007483a5410ee9c2085eab1a5 Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Thu, 7 Jul 2022 14:54:02 +0200 Subject: [PATCH] Updated deploy script --- deploy | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/deploy b/deploy index d4a9988..45eaf7e 100755 --- a/deploy +++ b/deploy @@ -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"