Fixed the README

This commit is contained in:
Sven Holz
2022-06-14 00:08:05 +02:00
parent 1dfa5f7bd0
commit 18c6c3ff51
3 changed files with 75 additions and 3 deletions

View File

@@ -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 docker latency-monitor -v /YOUR_PATH/config.ini:/app/config.ini
``` ```
-----
-----
## Compose Files ## Compose Files
### FULL-STACK ### 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 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 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 ## Authors

View File

@@ -116,7 +116,7 @@ services:
networks: networks:
- net-webproxy-no-inet - net-webproxy-no-inet
# latency-monitor # latency-monitor
latency-monitor: latency-monitor:
container_name: latency-monitor container_name: latency-monitor
hostname: latency-monitor hostname: latency-monitor

View File

@@ -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