From 18c6c3ff519b48e00e364b8989ddd6e709aa7ede Mon Sep 17 00:00:00 2001 From: Sven Holz Date: Tue, 14 Jun 2022 00:08:05 +0200 Subject: [PATCH] Fixed the README --- README.md | 53 ++++++++++++++++++++++++++++++++++- docker-compose-full_stack.yml | 4 +-- docker-compose-standalone.yml | 21 ++++++++++++++ 3 files changed, 75 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0cacfdd..8f93c25 100644 --- a/README.md +++ b/README.md @@ -65,11 +65,16 @@ Rename the file to *config.ini* make your changes and add it as a volume mount t docker latency-monitor -v /YOUR_PATH/config.ini:/app/config.ini ``` + +----- +----- + + ## Compose Files ### FULL-STACK -1st thing to do is creating the *docker-compose.yml: +1st thing to do is creating the *docker-compose.yml from [docker-compose-full_stack.yml](./docker-compose-full_stack.yml): ``` cp docker-compose-full_stack.yml docker-compose.yml @@ -145,10 +150,56 @@ then you have to do the following chown -R 472:472 /opt/docker/containers/grafana/var_lib ``` +#### Lets go + +``` +docker-compose up -d +``` + +should do the job +----- +----- +### STANDALONE + +1st thing to do is creating the *docker-compose.yml from [docker-compose-standalone.yml](./docker-compose-standalone.yml): + +``` +cp docker-compose-standalone.yml docker-compose.yml +``` + + +#### Variables + +Below paragraph: + +``` +#################################################### +# LATENCY-MONITOR +#################################################### +``` + +in the **.env** file *(env needs to be renamed to .env)* configure following variables: + +- YOUR_ORGANIZATION +- YOUR_BUCKET_NAME +- YOUR_ADMIN_TOKEN +- YOUR_MONITORED_TARGET +- YOUR_MONITORED_TARGET_TIMER +- YOUR_MONITORED_TARGET_LOCATION + + +#### Lets go + +``` +docker-compose up -d latency-monitor +``` + +should do the job + ## Authors diff --git a/docker-compose-full_stack.yml b/docker-compose-full_stack.yml index 2014905..a2d0dad 100644 --- a/docker-compose-full_stack.yml +++ b/docker-compose-full_stack.yml @@ -83,7 +83,7 @@ services: networks: - net-webproxy-no-inet - # GRAFANA + # GRAFANA grafana: container_name: grafana hostname: grafana @@ -116,7 +116,7 @@ services: networks: - net-webproxy-no-inet -# latency-monitor + # latency-monitor latency-monitor: container_name: latency-monitor hostname: latency-monitor diff --git a/docker-compose-standalone.yml b/docker-compose-standalone.yml index e69de29..ded8eb6 100644 --- a/docker-compose-standalone.yml +++ b/docker-compose-standalone.yml @@ -0,0 +1,21 @@ +version: '2.4' + +services: + + + # latency-monitor + latency-monitor: + container_name: latency-monitor + hostname: latency-monitor + build: ./Docker_Build + depends_on: + - influxdb + restart: always + environment: + - INFLUX_URL + - INFLUX_TOKEN + - INFLUX_BUCKET + - INFLUX_ORG + - TARGET_HOST + - TARGET_TIMER + - TARGET_LOCATION \ No newline at end of file