This commit is contained in:
root
2024-07-09 19:32:35 +08:00
parent d47f32d3c5
commit 6c6027d5f5
6 changed files with 120 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
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