Track server config (selected files)
This commit is contained in:
28
opt/monitoring/docker-compose.yml
Normal file
28
opt/monitoring/docker-compose.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
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
|
||||
Reference in New Issue
Block a user