70 lines
1.9 KiB
YAML
70 lines
1.9 KiB
YAML
version: "3.8"
|
|
|
|
services:
|
|
|
|
socat:
|
|
container_name: socat
|
|
image: bobrik/socat
|
|
command: TCP-LISTEN:2375,fork UNIX-CONNECT:/var/run/docker.sock
|
|
ports:
|
|
- "2375:2375"
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
system-exporter:
|
|
container_name: system-exporter
|
|
image: system-exporter
|
|
command: /app/system-exporter --docker-server http://socat:2375
|
|
ports:
|
|
- "45454:45454"
|
|
|
|
prometheus:
|
|
container_name: prometheus
|
|
image: bitnami/prometheus:latest
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./config/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
|
|
- ./config/prometheus//rules:/etc/prometheus/rules
|
|
command: "--config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/prometheus"
|
|
ports:
|
|
- 19090:9090
|
|
|
|
grafana:
|
|
container_name: grafana
|
|
image: grafana/grafana:latest
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./config/grafana/defaults.ini:/usr/share/grafana/conf/defaults.ini
|
|
- ./config/grafana/provisioning:/etc/grafana/provisioning
|
|
ports:
|
|
- "13000:3000"
|
|
depends_on:
|
|
- prometheus
|
|
|
|
alertmanager:
|
|
container_name: alertmanager
|
|
image: bitnami/alertmanager:latest
|
|
restart: unless-stopped
|
|
ports:
|
|
- 19093:9093
|
|
volumes:
|
|
- ./config/alertmanager/alertmanager.yml:/etc/alertmanager/alertmanager.yml
|
|
- ./config/grafana/provisioning/datasources/datasources.yml:/etc/grafana/provisioning/datasources/datasources.yaml
|
|
|
|
node-exporter:
|
|
container_name: node-exporter
|
|
image: bitnami/node-exporter:latest
|
|
restart: unless-stopped
|
|
privileged: true
|
|
ports:
|
|
- "19100:9100"
|
|
volumes:
|
|
- /proc:/host/proc:ro
|
|
- /sys:/host/sys:ro
|
|
- /:/rootfs:ro
|
|
command:
|
|
- "--path.procfs=/host/proc"
|
|
- "--path.sysfs=/host/sys"
|
|
- "--collector.filesystem.ignored-mount-points"
|
|
- "^/(rootfs/)?(dev|etc|host|proc|run|sys|volume1)($$|/)"
|