reword and format. bind ports to only localhost

This commit is contained in:
Shizun Ge
2021-10-28 02:11:13 -07:00
parent a0d38582f8
commit a0eaf9ec3a
2 changed files with 13 additions and 13 deletions

View File

@@ -16,7 +16,7 @@ services:
# SSH port
- 2222:2222
# Prometheus metrics port
- 2112:2112
- 127.0.0.1:2112:2112
prometheus:
image: prom/prometheus:latest
@@ -32,7 +32,7 @@ services:
networks:
- example_network
ports:
- 9090:9090
- 127.0.0.1:9090:9090
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus:/prometheus
@@ -44,7 +44,7 @@ services:
networks:
- example_network
ports:
- 3000:3000
- 127.0.0.1:3000:3000
environment:
- GF_SECURITY_ADMIN_USER=examples
- GF_SECURITY_ADMIN_PASSWORD=examples
@@ -57,4 +57,4 @@ networks:
volumes:
prometheus:
grafana_var:
grafana_var: