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