missing haproxy config
This commit is contained in:
@@ -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
|
||||||
|
|||||||
19
docker-compose.haproxy.yml
Normal file
19
docker-compose.haproxy.yml
Normal 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"
|
||||||
|
|
||||||
@@ -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'
|
||||||
|
|||||||
@@ -31,4 +31,4 @@ 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'
|
||||||
|
|||||||
Reference in New Issue
Block a user