diff --git a/docker-compose.bsc.yml b/docker-compose.bsc.yml index 26f6122b..a309590f 100644 --- a/docker-compose.bsc.yml +++ b/docker-compose.bsc.yml @@ -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 diff --git a/docker-compose.haproxy.yml b/docker-compose.haproxy.yml new file mode 100644 index 00000000..828d23d5 --- /dev/null +++ b/docker-compose.haproxy.yml @@ -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" + \ No newline at end of file diff --git a/docker-compose.monitoring.yml b/docker-compose.monitoring.yml index a3058fe3..de88c8a3 100644 --- a/docker-compose.monitoring.yml +++ b/docker-compose.monitoring.yml @@ -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' diff --git a/prometheus/prometheus.autodiscover.yml b/prometheus/prometheus.autodiscover.yml index 1e5f561a..8b8e828a 100644 --- a/prometheus/prometheus.autodiscover.yml +++ b/prometheus/prometheus.autodiscover.yml @@ -30,5 +30,5 @@ scrape_configs: - job_name: 'service_discovery' file_sd_configs: - - files: - - /prometheus-docker-sd/docker-targets.json + - files: + - '/prometheus-docker-sd/docker-targets.json'