refine dc and configs
This commit is contained in:
+14
-5
@@ -1,6 +1,6 @@
|
||||
services:
|
||||
# Grafana for visualization
|
||||
grafana:
|
||||
grafanao:
|
||||
image: grafana/grafana:latest
|
||||
container_name: grafana
|
||||
healthcheck:
|
||||
@@ -32,9 +32,6 @@ services:
|
||||
container_name: loki
|
||||
ports:
|
||||
- "9020:3100"
|
||||
volumes:
|
||||
- ./config/loki.yml:/etc/loki/local-config.yaml
|
||||
- loki-data:/var/loki
|
||||
command: -config.file=/etc/loki/local-config.yaml
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
@@ -70,12 +67,25 @@ services:
|
||||
command:
|
||||
- '--config.file=/etc/prometheus/prometheus.yml'
|
||||
- '--storage.tsdb.path=/prometheus'
|
||||
- '--storage.tsdb.retention.time=15d'
|
||||
- '--storage.tsdb.retention.size=10GB'
|
||||
- '--web.console.libraries=/etc/prometheus/console_libraries'
|
||||
- '--web.console.templates=/etc/prometheus/consoles'
|
||||
- '--web.enable-lifecycle'
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- monitoring
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
memory: 2G
|
||||
reservations:
|
||||
memory: 1G
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
delay: 5s
|
||||
max_attempts: 3
|
||||
window: 120s
|
||||
|
||||
# cAdvisor for container metrics
|
||||
cadvisor:
|
||||
@@ -116,7 +126,6 @@ services:
|
||||
|
||||
volumes:
|
||||
grafana-data:
|
||||
loki-data:
|
||||
prometheus-data:
|
||||
alloy-data:
|
||||
driver: local
|
||||
|
||||
Reference in New Issue
Block a user