Skip to content

Commit

Permalink
deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyKomarovCoder committed Nov 19, 2023
1 parent 1ae9bd8 commit 2369e35
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ services:
- type: bind
source: /home/ubuntu/grafana_metrics
target: /var/lib/grafana
- ./metrics/grafana/grafana.ini:/etc/grafana/grafana.ini
- ./metrics/grafana/:/etc/grafana/
networks:
- hamster-net
volumes:
Expand Down
54 changes: 27 additions & 27 deletions local-docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,36 +27,36 @@ services:
ports:
- "6379:6379"

prometheus:
container_name: prometheus
image: prom/prometheus:latest
volumes:
- ./metrics/prometheus:/etc/prometheus
ports:
- "9090:9090"
# prometheus:
# container_name: prometheus
# image: prom/prometheus:latest
# volumes:
# - ./metrics/prometheus:/etc/prometheus
# ports:
# - "9090:9090"

nodeexporter:
container_name: node_exporter
image: prom/node-exporter
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
restart: unless-stopped
ports:
- "9100:9100"
# nodeexporter:
# container_name: node_exporter
# image: prom/node-exporter
# volumes:
# - /proc:/host/proc:ro
# - /sys:/host/sys:ro
# - /:/rootfs:ro
# restart: unless-stopped
# ports:
# - "9100:9100"


grafana:
container_name: grafana
image: grafana/grafana-oss:9.4.3
user: '0'
ports:
- "3000/metrics:3000"
volumes:
- type: bind
source: /home/ubuntu/grafana_metrics
target: /var/lib/grafana
# grafana:
# container_name: grafana
# image: grafana/grafana-oss:9.4.3
# user: '0'
# ports:
# - "3000/metrics:3000"
# volumes:
# - type: bind
# source: /home/ubuntu/grafana_metrics
# target: /var/lib/grafana


networks:
Expand Down

0 comments on commit 2369e35

Please sign in to comment.