From 73ec8842896ff1bf26fae4f9deaf0a1b95a3315a Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Thu, 7 Jul 2022 16:37:29 +0200 Subject: [PATCH] Added .env to volume bindings --- README.md | 4 ++-- deploy | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c737b85..c451053 100644 --- a/README.md +++ b/README.md @@ -66,10 +66,10 @@ $ cat < database.local.json } EOF $ cat < .env -MODE="development" +MODE="production" HOST=":4000" ADMIN_PASSWORD="secret" MONITOR_SCRIPTS_DIR="./scripts" -MONITOR_CACHE_TIMEOUT="5s", time.ParseDuration +MONITOR_CACHE_TIMEOUT="10s" EOF ``` diff --git a/deploy b/deploy index cec80a0..51a6a8f 100755 --- a/deploy +++ b/deploy @@ -25,5 +25,6 @@ docker run -d \ -v /:/mnt/space:ro \ -v /data-home:/mnt/data-home:ro \ -v "$(pwd)/buckets.local:/buckets" \ + -v "$(pwd)/.env:/app/.env" \ -v "$(pwd)/database.local.json:/app/database.local.json" \ "$IMAGE_NAME"