From f9ee504d01f8fb48e93390330f4fe7ea8d02625b Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Thu, 7 Jul 2022 16:02:20 +0200 Subject: [PATCH] Updated deploy script --- README.md | 23 +++++++++++++++++++++++ deploy | 1 + 2 files changed, 24 insertions(+) diff --git a/README.md b/README.md index 68b4fea..c737b85 100644 --- a/README.md +++ b/README.md @@ -50,3 +50,26 @@ and then # Production $ go run -v . ``` + +### Production with Docker + +```bash +$ mkdir buckets.local/ +$ cat < database.local.json +{ + "prefixSize": 2, + "dashboardState": { + "widgets": [] + }, + "buckets": {}, + "api-keys": [] +} +EOF +$ cat < .env +MODE="development" +HOST=":4000" +ADMIN_PASSWORD="secret" +MONITOR_SCRIPTS_DIR="./scripts" +MONITOR_CACHE_TIMEOUT="5s", time.ParseDuration +EOF +``` diff --git a/deploy b/deploy index e0d3d91..00c6d60 100755 --- a/deploy +++ b/deploy @@ -19,6 +19,7 @@ docker run -d \ --name "$CONTAINER_NAME" \ --restart unless-stopped \ -p "$HOST_PORT:4000" \ + --privileged \ -v /proc:/proc \ -v /dev:/dev \ -v "$(pwd)/buckets.local:/buckets" \