From 57665cb21cc5a7d8f43fafeed4eb72dd84b7fc5d Mon Sep 17 00:00:00 2001 From: Alexey Velikiy Date: Sat, 26 May 2018 17:43:26 +0300 Subject: [PATCH] Update HOOKS.md --- HOOKS.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/HOOKS.md b/HOOKS.md index 6a66936..c8061a4 100644 --- a/HOOKS.md +++ b/HOOKS.md @@ -14,3 +14,19 @@ Alert example (method: POST): `status` field can be one of: - `alert` - `OK` + +# Docker run +``` +docker run -d --name hastic-server -p 80:8000 -e HASTIC_API_KEY= HASTIC_ALERT_ENDPOINT="http://exam.ple" hastic-server +``` + +# Node run + +Add variable before launch node.js server +``` +$ export HASTIC_ALERT_ENDPOINT=http://alert.example.com +$ cd hastic-server/server +$ npm start +``` + +