Add monitoring docker compose
This commit is contained in:
121
docker/monitoring-compose.yml
Executable file
121
docker/monitoring-compose.yml
Executable file
@@ -0,0 +1,121 @@
|
||||
services:
|
||||
prometheus:
|
||||
image: prom/prometheus:v3.5.0
|
||||
container_name: prometheus
|
||||
volumes:
|
||||
- ./prometheus/config:/etc/prometheus
|
||||
- ./prometheus/data:/prometheus
|
||||
command:
|
||||
- "--config.file=/etc/prometheus/prometheus.yml"
|
||||
- "--storage.tsdb.path=/prometheus"
|
||||
- "--web.console.libraries=/etc/prometheus/console_libraries"
|
||||
- "--web.console.templates=/etc/prometheus/consoles"
|
||||
- "--storage.tsdb.retention.time=1d"
|
||||
- "--web.enable-lifecycle"
|
||||
- "--web.listen-address=:43261"
|
||||
restart: unless-stopped
|
||||
expose:
|
||||
- 43261
|
||||
network_mode: "host"
|
||||
labels:
|
||||
org.label-schema.group: "monitoring"
|
||||
|
||||
nodeexporter:
|
||||
image: prom/node-exporter:v1.8.2
|
||||
container_name: nodeexporter
|
||||
volumes:
|
||||
- /proc:/host/proc:ro
|
||||
- /sys:/host/sys:ro
|
||||
- /:/rootfs:ro
|
||||
command:
|
||||
- "--path.procfs=/host/proc"
|
||||
- "--path.rootfs=/rootfs"
|
||||
- "--path.sysfs=/host/sys"
|
||||
- "--collector.filesystem.ignored-mount-points=^/(sys|proc|dev|host|etc)($$|/)"
|
||||
- "--web.listen-address=:56546"
|
||||
restart: unless-stopped
|
||||
expose:
|
||||
- 56546
|
||||
network_mode: "host"
|
||||
labels:
|
||||
org.label-schema.group: "monitoring"
|
||||
|
||||
# cadvisor:
|
||||
# image: gcr.io/google-containers/cadvisor:v0.34.0
|
||||
# container_name: cadvisor
|
||||
# volumes:
|
||||
# - /:/rootfs:ro
|
||||
# - /var/run:/var/run:rw
|
||||
# - /sys:/sys:ro
|
||||
# - /var/lib/docker:/var/lib/docker:ro
|
||||
# #- /cgroup:/cgroup:ro #doesn't work on MacOS only for Linux
|
||||
# restart: unless-stopped
|
||||
# expose:
|
||||
# - 8080
|
||||
# network_mode: "host"
|
||||
# labels:
|
||||
# org.label-schema.group: "monitoring"
|
||||
|
||||
# We run grafana via coolify so that it may be exposed to internet
|
||||
# grafana:
|
||||
# image: grafana/grafana:11.5
|
||||
# container_name: grafana
|
||||
# volumes:
|
||||
# - ./grafana/data:/var/lib/grafana
|
||||
# - ./grafana/config:/etc/grafana
|
||||
# environment:
|
||||
# - GF_SECURITY_ADMIN_USER=dave
|
||||
# - GF_SECURITY_ADMIN_PASSWORD=9@^F@93qHv48JXHvi3Bf
|
||||
# - GF_USERS_ALLOW_SIGN_UP=true
|
||||
# restart: unless-stopped
|
||||
# expose:
|
||||
# - 43621
|
||||
# network_mode: "host"
|
||||
# labels:
|
||||
# org.label-schema.group: "monitoring"
|
||||
|
||||
#loki:
|
||||
# container_name: loki
|
||||
# image: grafana/loki:3.3.2
|
||||
# expose:
|
||||
# - 43622
|
||||
# command: -config.file=/etc/loki/config.yaml
|
||||
# restart: unless-stopped
|
||||
# volumes:
|
||||
# - ./loki/config:/etc/loki
|
||||
# - ./loki/data:/data/loki
|
||||
# network_mode: "host"
|
||||
|
||||
#promtail:
|
||||
# container_name: promtail
|
||||
# image: grafana/promtail:3.3.2
|
||||
# expose:
|
||||
# - 43623
|
||||
# volumes:
|
||||
# - /var/log:/var/log
|
||||
# - /mnt/data/docker/containers:/var/lib/docker/containers:ro
|
||||
# - ./promtail/config:/etc/promtail
|
||||
# command: -config.file=/etc/promtail/config.yml
|
||||
# restart: unless-stopped
|
||||
# network_mode: "host"
|
||||
|
||||
#pinger:
|
||||
# image: pinger
|
||||
# container_name: pinger
|
||||
# restart: unless-stopped
|
||||
# network_mode: "host"
|
||||
# volumes:
|
||||
# - ./pinger/logs:/logs
|
||||
victoriametrics:
|
||||
image: victoriametrics/victoria-metrics
|
||||
container_name: victoriametrics
|
||||
volumes:
|
||||
- ./victoriametrics/data:/victoria-metrics-data
|
||||
command:
|
||||
- "--retentionPeriod=100y"
|
||||
restart: unless-stopped
|
||||
expose:
|
||||
- 8428
|
||||
network_mode: "host"
|
||||
labels:
|
||||
org.label-schema.group: "monitoring"
|
17
docker/syncthing-compose.yml
Executable file
17
docker/syncthing-compose.yml
Executable file
@@ -0,0 +1,17 @@
|
||||
services:
|
||||
syncthing:
|
||||
image: syncthing/syncthing:1.29
|
||||
container_name: syncthing
|
||||
hostname: cyka-syncthing
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
volumes:
|
||||
- /mnt/data/docker/volumes/captain--sync-data/_data:/var/syncthing
|
||||
network_mode: host
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: curl -fkLsS -m 2 127.0.0.1:8384/rest/noauth/health | grep -o --color=never OK || exit 1
|
||||
interval: 1m
|
||||
timeout: 10s
|
||||
retries: 3
|
Reference in New Issue
Block a user