missing haproxy config

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

View File

@@ -9,7 +9,7 @@ services:
- "8546" - "8546"
- "30303" - "30303"
volumes: volumes:
- /root/bsc-datadir/server1/dataseed:/datadir - /root/bsc-datadir/server1/data-seed:/datadir
- /root/bsc-config/config.toml:/config.toml - /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" 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 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 ### MONITORING
prometheus: prometheus:
image: prom/prometheus:v2.25.0 image: prom/prometheus:v2.30.3
container_name: prometheus container_name: prometheus
volumes: volumes:
- ./prometheus/prometheus.autodiscover.yml:/etc/prometheus/prometheus.yml - ./prometheus/prometheus.autodiscover.yml:/etc/prometheus/prometheus.yml:ro
- prometheus_data:/prometheus - prometheus_data:/prometheus:rw
- prometheus-docker-sd:/prometheus-docker-sd:rw - prometheus-docker-sd:/prometheus-docker-sd:ro
command: command:
- '--config.file=/etc/prometheus/prometheus.yml' - '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus' - '--storage.tsdb.path=/prometheus'

View File

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