diff --git a/README.MD b/README.MD index 2e09a93..67e0f8b 100644 --- a/README.MD +++ b/README.MD @@ -3,6 +3,11 @@ Go (golang) application for checking and monitoring nodes through HTTP and HTTPS requests to nodes with a response code check other than '200'. +## Simple use +1. Copy `example` folder +2. Change `config.yaml` +3. Run `sudo docker-compose up -d` + ## Install and config Download the required repository; diff --git a/example/conf/config.yaml b/example/conf/config.yaml new file mode 100644 index 0000000..a5006f7 --- /dev/null +++ b/example/conf/config.yaml @@ -0,0 +1,16 @@ +app: + update: 60 + +telegram: + token: 244516775:AAGZUrt9eQjhGSsFFpbjyNA9su6gQU-Qs + group: -6596563379 + +http: + repeat: 5 + timeout: 30 + delay: 1 + sites: + - url: https://yandex.ru + elements: + - YandexZen + - url: https://google.com \ No newline at end of file diff --git a/example/docker-compose.yml b/example/docker-compose.yml new file mode 100644 index 0000000..aecfc88 --- /dev/null +++ b/example/docker-compose.yml @@ -0,0 +1,7 @@ +version: "3.9" +services: + app: + image: leech001/telegram-site-monitor + restart: always + volumes: + - ./conf:/app/conf:ro \ No newline at end of file