missing haproxy config

This commit is contained in:
Your Name
2022-02-13 21:32:07 +01:00
parent 51c432ae78
commit b202565599
4 changed files with 26 additions and 7 deletions

View File

@@ -9,7 +9,7 @@ services:
- "8546"
- "30303"
volumes:
- /root/bsc-datadir/server1/dataseed:/datadir
- /root/bsc-datadir/server1/data-seed:/datadir
- /root/bsc-config/config.toml:/config.toml
command: "--cache 18000 --rpc --rpcaddr=\"0.0.0.0\" --rpc.allow-unprotected-txs --txlookuplimit 0 --syncmode snap --config /config.toml --datadir /datadir"
restart: unless-stopped

View File

@@ -0,0 +1,19 @@
version: '3.1'
services:
haproxy:
build: haproxy
volumes:
- ./haproxy:/usr/local/etc/haproxy
expose:
- "8404"
ports:
- "80:80"
restart: always
labels:
- "prometheus-scrape.enabled=true"
- "prometheus-scrape.port=8404"
- "prometheus-scrape.job_name=haproxy"
- "prometheus-scrape.metrics_path=/metrics"

View File

@@ -34,12 +34,12 @@ services:
### MONITORING
prometheus:
image: prom/prometheus:v2.25.0
image: prom/prometheus:v2.30.3
container_name: prometheus
volumes:
- ./prometheus/prometheus.autodiscover.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
- prometheus-docker-sd:/prometheus-docker-sd:rw
- ./prometheus/prometheus.autodiscover.yml:/etc/prometheus/prometheus.yml:ro
- prometheus_data:/prometheus:rw
- prometheus-docker-sd:/prometheus-docker-sd:ro
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'

View File

@@ -31,4 +31,4 @@ scrape_configs:
- job_name: 'service_discovery'
file_sd_configs:
- files:
- /prometheus-docker-sd/docker-targets.json
- '/prometheus-docker-sd/docker-targets.json'