Додан моніторінг застосунку

Додани веб компоненти карточок територій та повідомлень
This commit is contained in:
2025-12-08 00:14:56 +02:00
parent e41590546c
commit 85483b85bb
206 changed files with 2370 additions and 595 deletions

View File

@@ -34,6 +34,8 @@ services:
shm_size: '1gb'
networks:
- network
depends_on:
- metrics
ws:
image: sheep-service/ws
@@ -49,6 +51,54 @@ services:
networks:
- network
metrics:
image: sheep-service/metrics
build: ./metrics
ports:
- "4005:4005" # HTTP push
- "4006:4006" # WebSocket
networks:
- network
depends_on:
- pushgateway
pushgateway:
image: prom/pushgateway
ports:
- "4007:9091"
networks:
- network
prometheus:
image: prom/prometheus
volumes:
- "${DATA_PATH:-./data}/prometheus.yml:/etc/prometheus/prometheus.yml"
ports:
- "4008:9090"
networks:
- network
depends_on:
- pushgateway
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
- "--storage.tsdb.retention.time=7d"
grafana:
image: grafana/grafana
ports:
- "4009:3000"
networks:
- network
depends_on:
- prometheus
environment:
- GF_SERVER_ROOT_URL=%(protocol)s://%(domain)s/grafana/
- GF_SECURITY_ADMIN_USER=${ADMIN_USER}
- GF_SECURITY_ADMIN_PASSWORD=${ADMIN_TOKEN}
volumes:
- ${DATA_PATH:-./data}/grafana:/var/lib/grafana
nginx:
image: nginx:latest
restart: always
@@ -66,6 +116,8 @@ services:
command: /bin/sh -c "envsubst '\$DOMAIN' < /etc/nginx/templates/default.conf.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
networks:
- network
depends_on:
- grafana
cron:
image: sheep-service/cron