mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 10:05:18 +00:00
37 lines
812 B
YAML
37 lines
812 B
YAML
|
version: '3.8'
|
||
|
|
||
|
networks:
|
||
|
monitoring:
|
||
|
driver: bridge
|
||
|
|
||
|
volumes:
|
||
|
prometheus_data: {}
|
||
|
|
||
|
services:
|
||
|
grafana:
|
||
|
image: grafana/grafana-enterprise
|
||
|
container_name: grafana
|
||
|
restart: unless-stopped
|
||
|
ports:
|
||
|
- "3000:3000"
|
||
|
networks:
|
||
|
- monitoring
|
||
|
|
||
|
prometheus:
|
||
|
image: prom/prometheus:latest
|
||
|
container_name: prometheus
|
||
|
restart: unless-stopped
|
||
|
volumes:
|
||
|
- ./prometheus.yml:/etc/prometheus/prometheus.yml
|
||
|
- prometheus_data:/prometheus
|
||
|
command:
|
||
|
- '--config.file=/etc/prometheus/prometheus.yml'
|
||
|
- '--storage.tsdb.path=/prometheus'
|
||
|
- '--web.console.libraries=/etc/prometheus/console_libraries'
|
||
|
- '--web.console.templates=/etc/prometheus/consoles'
|
||
|
- '--web.enable-lifecycle'
|
||
|
expose:
|
||
|
- 9090
|
||
|
networks:
|
||
|
- monitoring
|