Skip to content

Commit

Permalink
docker-compose upd
Browse files Browse the repository at this point in the history
  • Loading branch information
ksuysshaa committed Dec 18, 2024
1 parent 74928e2 commit 0a7c3a6
Showing 1 changed file with 54 additions and 54 deletions.
108 changes: 54 additions & 54 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,70 +170,70 @@ services:
# ----------------------------------------------
# Prometheus и Grafana
# ----------------------------------------------
node_exporter:
image: prom/node-exporter
restart: always
ports:
- "9100:9100"
networks:
- app-network

prometheus:
image: prom/prometheus:latest
restart: always
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
depends_on:
node_exporter:
condition: service_started
app:
condition: service_started
networks:
- app-network
# node_exporter:
# image: prom/node-exporter
# restart: always
# ports:
# - "9100:9100"
# networks:
# - app-network

# loki:
# image: grafana/loki:2.7.1
# prometheus:
# image: prom/prometheus:latest
# restart: always
# ports:
# - "3100:3100"
# command: -config.file=/etc/loki/local-config.yaml
# - "9090:9090"
# volumes:
# - ./loki-config.yml:/etc/loki/local-config.yaml
# - loki_data:/loki
# - ./prometheus.yml:/etc/prometheus/prometheus.yml
# - prometheus_data:/prometheus
# command:
# - '--config.file=/etc/prometheus/prometheus.yml'
# - '--storage.tsdb.path=/prometheus'
# depends_on:
# node_exporter:
# condition: service_started
# app:
# condition: service_started
# networks:
# - app-network

# promtail:
# image: grafana/promtail:2.7.1
# # loki:
# # image: grafana/loki:2.7.1
# # ports:
# # - "3100:3100"
# # command: -config.file=/etc/loki/local-config.yaml
# # volumes:
# # - ./loki-config.yml:/etc/loki/local-config.yaml
# # - loki_data:/loki
# # networks:
# # - app-network

# # promtail:
# # image: grafana/promtail:2.7.1
# # volumes:
# # - ./promtail-config.yml:/etc/promtail/config.yml
# # - /var/log:/var/log
# # command: -config.file=/etc/promtail/config.yml
# # networks:
# # - app-network

# grafana:
# image: grafana/grafana:latest
# container_name: grafana
# ports:
# - "8010:3000"
# volumes:
# - ./promtail-config.yml:/etc/promtail/config.yml
# - /var/log:/var/log
# command: -config.file=/etc/promtail/config.yml
# - ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
# - ./grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards
# - ./grafana/dashboards:/var/lib/grafana/dashboards
# environment:
# - GF_SECURITY_ADMIN_USER=${GRAFANA_ADMIN_USER}
# - GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_ADMIN_PASSWORD}
# depends_on:
# - prometheus
# networks:
# - app-network

grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- "8010:3000"
volumes:
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
- ./grafana/provisioning/dashboards:/etc/grafana/provisioning/dashboards
- ./grafana/dashboards:/var/lib/grafana/dashboards
environment:
- GF_SECURITY_ADMIN_USER=${GRAFANA_ADMIN_USER}
- GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_ADMIN_PASSWORD}
depends_on:
- prometheus
networks:
- app-network

networks:
app-network:
driver: bridge
Expand Down

0 comments on commit 0a7c3a6

Please sign in to comment.