documentation of DNS slave, wo-bisch docker version

This commit is contained in:
2022-07-05 19:10:21 +02:00
parent 86da33773a
commit 9896e87f70
3 changed files with 190 additions and 0 deletions
+62
View File
@@ -0,0 +1,62 @@
version: '3.7'
services:
influxdb:
image: influxdb:latest
volumes:
- influxdb2:/var/lib/influxdb2
restart: always
expose:
- 8086
redis:
image: redis:latest
restart: always
expose:
- 5432
volumes:
- cache:/data
telegraf:
image: telegraf:latest
restart: always
volumes:
- lorahandlerdata:/data
- ./telegraf.conf:/etc/telegraf/telegraf.conf
lorahandler:
image: wo-bisch-lorahandler:latest
restart: always
volumes:
- lorahandlerdata:/data
environment:
- REDIS_CONNECTION_STRING=redis:6379
labels:
- traefik.enable=true
- traefik.http.routers.wobischdevlorahandler.rule=Host(`dev2.wo-bisch.ch`) && PathPrefix(`/lorahandler`)
- traefik.http.routers.wobischdevlorahandler.entrypoints=websecure
web:
image: wo-bisch-web:latest
restart: always
environment:
- REDIS_CONNECTION_STRING=redis:6379
- INFLUX_URL=http://influxdb:8086/api/v2/query?org=wobischorg
- INFLUX_RO_TOKEN=TQvQxxLLAj1kTKWuEqcx7BA-KfE6WtJUeDlPa_Dnvms6Zqf6uh6lMbpXtzcsCjKO_x3PrpxxGDR5E6YnDB5PFg==
- STRIPE_KEY=sk_test_51Icq29K2XyHQRTs20aEeyUHH3WgE6nBkAKUFuXsQtbnZNIP5fap5zTLTaA0XvhIcRHkqt3vJ2nui6df8R9VDuDDh00nhzmWdHr
- STRIPE_PK=pk_test_51Icq29K2XyHQRTs2DeltUIWrbFb5evfJVGaQzMv4r50g8Q7HAUkSFr7BBGv0aP1damXIhM6fZ4Yf9Wz0qW6TpTVi00dWcW7J1O
labels:
- traefik.enable=true
- traefik.http.routers.wobischdev.rule=Host(`dev2.wo-bisch.ch`)
- traefik.http.routers.wobischdev.entrypoints=websecure
- traefik.http.routers.wobischdev.tls.certresolver=myresolver
- traefik.http.routers.wobischdev.tls.domains[0].main=dev2.wo-bisch.ch
volumes:
influxdb2:
cache:
lorahandlerdata:
networks:
default:
external: true
name: proxy_default
+31
View File
@@ -0,0 +1,31 @@
[global_tags]
# Configuration for telegraf agent
[agent]
interval = "10s"
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 100000
collection_jitter = "0s"
flush_interval = "10s"
flush_jitter = "0s"
precision = ""
debug = false
quiet = false
logfile = ""
hostname = ""
omit_hostname = false
[[inputs.tail]]
files = ["/data/wo-bisch-lorahandler.log"]
from_beginning = false
pipe = false
tagexclude = ["path","host"]
data_format = "influx"
# Configuration for sending metrics to InfluxDB 2.0
[[outputs.influxdb_v2]]
urls = ["http://influxdb:8086"]
token = "PWuleFEPB2YSduUkzkcW94V_-KFDK5Fi3MAeaA999Qe51OsGlJJSrcZ41pUAppCwF-z3rUNnyFQQJs8fCSTFzg=="
organization = "wobischorg"
bucket = "wobischbucket"