Update corbeille/centre_observabilite_script/docker-compose.yml
This commit is contained in:
parent
333a0f9e90
commit
82ac16268d
@ -10,6 +10,7 @@ services:
|
||||
- "9090:9090"
|
||||
networks:
|
||||
- observability
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana:latest
|
||||
container_name: grafana-observability
|
||||
@ -34,19 +35,22 @@ services:
|
||||
- observability
|
||||
depends_on:
|
||||
- loki
|
||||
|
||||
loki:
|
||||
image: grafana/loki:2.8.2
|
||||
container_name: loki-observability
|
||||
ports:
|
||||
- "3100:3100"
|
||||
command: -config.file=/etc/loki/local-config.yaml
|
||||
user: "1000:1000" # UID:GID correspondant à ton utilisateur hôte
|
||||
volumes:
|
||||
- ./loki-config.yaml:/etc/loki/local-config.yaml
|
||||
- loki-wal:/wal
|
||||
- loki-chunks:/loki/chunks
|
||||
- loki-index:/loki/index
|
||||
- ./loki-wal:/wal
|
||||
- ./loki-chunks:/loki/chunks
|
||||
- ./loki-index:/loki/index
|
||||
networks:
|
||||
- observability
|
||||
|
||||
promtail:
|
||||
image: grafana/promtail:2.8.2
|
||||
container_name: promtail-observability
|
||||
@ -58,6 +62,7 @@ services:
|
||||
- -config.file=/etc/promtail/config.yaml
|
||||
networks:
|
||||
- observability
|
||||
|
||||
node_exporter:
|
||||
image: prom/node-exporter:latest
|
||||
container_name: node-exporter
|
||||
@ -72,11 +77,10 @@ services:
|
||||
- '--path.procfs=/host/proc'
|
||||
- '--path.sysfs=/host/sys'
|
||||
- '--collector.filesystem.ignored-mount-points="^/(sys|proc|dev|host|etc)($$|/)"'
|
||||
|
||||
volumes:
|
||||
grafana-data:
|
||||
loki-wal:
|
||||
loki-chunks:
|
||||
loki-index:
|
||||
|
||||
networks:
|
||||
observability:
|
||||
driver: bridge
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user