2018-06-09 08:29:15 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
networks:
|
|
|
|
public: {}
|
2018-06-10 13:44:52 +00:00
|
|
|
private: {}
|
2018-06-09 08:29:15 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
grafana_lib: {}
|
|
|
|
grafana_ds:
|
|
|
|
|
|
|
|
services:
|
2022-05-06 20:01:12 +00:00
|
|
|
# influxdb:
|
|
|
|
# image: influxdb:alpine
|
|
|
|
# container_name: influxdb
|
|
|
|
# ports:
|
|
|
|
# - "8087:8086"
|
|
|
|
# networks:
|
|
|
|
# - public
|
|
|
|
# - private
|
|
|
|
# volumes:
|
|
|
|
# - ./data/influxdb:/var/lib/influxdb:rw
|
|
|
|
# environment:
|
|
|
|
# INFLUXDB_REPORTING_DISABLED: "true"
|
|
|
|
# INFLUXDB_DB: telegraf
|
|
|
|
# INFLUXDB_USER: telegraf
|
|
|
|
# INFLUXDB_USER_PASSWORD: nimda321
|
|
|
|
|
|
|
|
influxdb_cli:
|
|
|
|
# links:
|
|
|
|
# - influxdb
|
2018-06-09 08:29:15 +00:00
|
|
|
image: influxdb:alpine
|
2022-05-06 20:01:12 +00:00
|
|
|
container_name: influxdb2
|
|
|
|
ports:
|
2018-06-09 08:29:15 +00:00
|
|
|
- "8086:8086"
|
2022-05-06 20:01:12 +00:00
|
|
|
volumes:
|
|
|
|
- ./data/influxdb:/var/lib/influxdb:rw
|
|
|
|
environment:
|
|
|
|
- DOCKER_INFLUXDB_INIT_MODE=setup
|
|
|
|
- DOCKER_INFLUXDB_INIT_USERNAME=admin
|
|
|
|
- DOCKER_INFLUXDB_INIT_PASSWORD=startadmin
|
|
|
|
- DOCKER_INFLUXDB_INIT_ORG=myorg
|
|
|
|
- DOCKER_INFLUXDB_INIT_BUCKET=start
|
|
|
|
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=2il9Lpevo6ujoaLhxN5Euinz39UxfzeKaChv7O99B69NDxH2XNvu-zxow5vL-1StZ0Sxu7uw4UyIySEI95H1IQ==
|
|
|
|
entrypoint: ["./entrypoint.sh"]
|
|
|
|
restart: on-failure:10
|
|
|
|
# depends_on:
|
|
|
|
# - influxdb
|
2018-06-09 08:29:15 +00:00
|
|
|
|
|
|
|
grafana:
|
2022-05-06 21:55:20 +00:00
|
|
|
# image: grafana/grafana:5.1.3
|
2022-05-06 20:01:12 +00:00
|
|
|
image: grafana/grafana:latest
|
2018-06-09 08:29:15 +00:00
|
|
|
container_name: grafana
|
|
|
|
ports:
|
2022-05-06 21:55:20 +00:00
|
|
|
- "3000:3000"
|
2018-06-09 08:29:15 +00:00
|
|
|
networks:
|
|
|
|
- public
|
2018-06-10 13:44:52 +00:00
|
|
|
- private
|
2018-06-09 08:29:15 +00:00
|
|
|
volumes:
|
|
|
|
- grafana_lib:/var/lib/grafana
|
2018-06-19 15:12:39 +00:00
|
|
|
# - ${PWD}/grafana/privkey1.pem:/privkey1.pem:ro
|
|
|
|
# - ${PWD}/grafana/fullchain1.pem:/fullchain1.pem:ro
|
2018-06-10 13:44:52 +00:00
|
|
|
- ${PWD}/grafana/:/var/lib/grafana/ds/
|
2018-06-09 08:29:15 +00:00
|
|
|
environment:
|
2018-06-17 11:05:55 +00:00
|
|
|
GF_AUTH_ANONYMOUS_ENABLED: "false"
|
|
|
|
GF_SECURITY_ADMIN_PASSWORD: "nimda321"
|
|
|
|
GF_SECURITY_ADMIN_USER: "admin"
|
|
|
|
GF_SERVER_PROTOCOL: "http"
|
|
|
|
GF_SERVER_DOMAIN: "sebson.ddns.net"
|
2018-06-19 15:12:39 +00:00
|
|
|
# GF_SERVER_CERT_FILE: "/fullchain1.pem"
|
|
|
|
# GF_SERVER_CERT_KEY: "/privkey1.pem"
|
2018-06-17 11:05:55 +00:00
|
|
|
GF_SERVER_METRICS_ENABLED: "true"
|
|
|
|
GF_SERVER_METRICS_INTERVAL_SECONDS: "10"
|
2018-06-09 08:29:15 +00:00
|
|
|
INFLUXDB_URI: "http://influxdb:8086"
|
|
|
|
INFLUXDB_DB: telegraf
|
|
|
|
INFLUXDB_USER: telegraf
|
2018-06-17 11:05:55 +00:00
|
|
|
INFLUXDB_USER_PASSWORD: nimda321
|
2018-06-09 08:29:15 +00:00
|
|
|
|
|
|
|
telegraf:
|
|
|
|
image: telegraf:latest
|
|
|
|
container_name: telegraf
|
|
|
|
network_mode: "host"
|
|
|
|
volumes:
|
|
|
|
- ./telegraf.conf:/etc/telegraf/telegraf.conf:ro
|
|
|
|
environment:
|
|
|
|
# real influx host
|
|
|
|
INFLUXDB_URI: "http://localhost:8086"
|
2022-05-06 20:01:12 +00:00
|
|
|
DOCKER_INFLUXDB_INIT_ORG: "myorg"
|
|
|
|
DOCKER_INFLUXDB_INIT_BUCKET: "start"
|
|
|
|
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: "2il9Lpevo6ujoaLhxN5Euinz39UxfzeKaChv7O99B69NDxH2XNvu-zxow5vL-1StZ0Sxu7uw4UyIySEI95H1IQ=="
|
|
|
|
|
2018-06-10 13:44:52 +00:00
|
|
|
|
|
|
|
prometheus:
|
|
|
|
image: quay.io/prometheus/prometheus:v2.0.0
|
|
|
|
container_name: prometheus
|
|
|
|
volumes:
|
|
|
|
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
|
|
|
|
networks:
|
|
|
|
- private
|
|
|
|
command: "--config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/prometheus"
|
|
|
|
ports:
|
2018-06-17 11:05:55 +00:00
|
|
|
- 9091:9090
|
2018-06-10 13:44:52 +00:00
|
|
|
depends_on:
|
|
|
|
- node_exporter
|
|
|
|
|
|
|
|
node_exporter:
|
|
|
|
image: prom/node-exporter:v0.13.0
|
|
|
|
container_name: node_exporter
|
|
|
|
volumes:
|
|
|
|
- ${PWD}/node_exporter/justrun.py:/justrun.py:rw
|
|
|
|
- ${PWD}/node_exporter/hmon:/hmon:rw
|
|
|
|
- ${PWD}/node_exporter/smoothlogging:/smoothlogging:rw
|
|
|
|
- ${PWD}/node_exporter/textfile_collector:/var/lib/node_exporter/textfile_collector/
|
|
|
|
networks:
|
|
|
|
- public
|
|
|
|
- private
|
|
|
|
environment:
|
2018-06-17 11:05:55 +00:00
|
|
|
DOGSNAME: "GULA,BODKA"
|
2018-06-10 13:44:52 +00:00
|
|
|
expose:
|
|
|
|
- 9100
|
|
|
|
ports:
|
2018-06-17 11:05:55 +00:00
|
|
|
- 9101:9100
|
2018-06-17 11:20:33 +00:00
|
|
|
|
2018-06-17 11:05:55 +00:00
|
|
|
cadvisor:
|
2018-06-17 11:20:33 +00:00
|
|
|
image: google/cadvisor:v0.28.3
|
|
|
|
container_name: cadvisor
|
2018-06-17 11:05:55 +00:00
|
|
|
volumes:
|
|
|
|
- /:/rootfs:ro
|
|
|
|
- /var/run:/var/run:rw
|
|
|
|
- /sys:/sys:ro
|
|
|
|
- /var/lib/docker/:/var/lib/docker:ro
|
2018-06-19 15:12:39 +00:00
|
|
|
- /cgroup:/cgroup:ro #doesn't work on MacOS only for Linux
|
2018-06-17 11:20:33 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
expose:
|
|
|
|
- 8080
|
2018-06-17 11:05:55 +00:00
|
|
|
networks:
|
2018-06-17 11:20:33 +00:00
|
|
|
- private
|
2018-06-17 11:05:55 +00:00
|
|
|
- public
|
2018-06-17 11:20:33 +00:00
|
|
|
labels:
|
|
|
|
org.label-schema.group: "monitoring"
|
|
|
|
|
|
|
|
alertmanager:
|
|
|
|
image: prom/alertmanager
|
|
|
|
container_name: alertmanager
|
|
|
|
ports:
|
|
|
|
- 9093:9093
|
|
|
|
volumes:
|
|
|
|
- ./alertmanager/:/etc/alertmanager/
|
|
|
|
networks:
|
|
|
|
- private
|
|
|
|
restart: unless-stopped
|
|
|
|
command:
|
|
|
|
- '--config.file=/etc/alertmanager/config.yml'
|
|
|
|
- '--storage.path=/alertmanager'
|