29 lines
696 B
YAML
29 lines
696 B
YAML
version: '3.8'
|
|
services:
|
|
prometheus:
|
|
image: prom/prometheus:latest
|
|
container_name: prometheus
|
|
volumes:
|
|
- ./prometheus:/etc/prometheus
|
|
command:
|
|
- '--config.file=/etc/prometheus/prometheus.yml'
|
|
- '--storage.tsdb.path=/prometheus'
|
|
ports:
|
|
- "9090:9090"
|
|
restart: unless-stopped
|
|
|
|
grafana:
|
|
image: grafana/grafana:latest
|
|
container_name: grafana
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- GF_SECURITY_ADMIN_USER=admin
|
|
- GF_SECURITY_ADMIN_PASSWORD=supersecret
|
|
- GF_SERVER_ROOT_URL=https://monitor.cutemeli.com
|
|
volumes:
|
|
- ./grafana:/var/lib/grafana
|
|
depends_on:
|
|
- prometheus
|
|
restart: unless-stopped
|