35 lines
832 B
YAML
35 lines
832 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
prometheus:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.prometheus
|
|
args:
|
|
PROMETHEUS_VERSION: "2.45.6"
|
|
HTTP_PROXY: "http://localhost:15777"
|
|
HTTPS_PROXY: "http://localhost:15777"
|
|
image: zly/prometheus:latest
|
|
container_name: prometheus
|
|
ports:
|
|
- "9090:9090"
|
|
volumes:
|
|
- ./prometheus.yml:/opt/prometheus/prometheus.yml
|
|
restart: unless-stopped
|
|
|
|
grafana:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.grafana
|
|
args:
|
|
GRAFANA_VERSION: "9.5.2"
|
|
HTTP_PROXY: "http://localhost:15777"
|
|
HTTPS_PROXY: "http://localhost:15777"
|
|
image: zly/grafana:latest
|
|
container_name: grafana
|
|
ports:
|
|
- "3000:3000"
|
|
volumes:
|
|
- ./grafana.ini:/etc/grafana/grafana.ini
|
|
restart: unless-stopped
|