mirror of
https://github.com/mii443/prometheus-android-exporter.git
synced 2025-08-23 15:48:11 +00:00
docker compose works
This commit is contained in:
@ -9,15 +9,15 @@ http{
|
|||||||
|
|
||||||
# Upstream server definitions
|
# Upstream server definitions
|
||||||
upstream prometheus{
|
upstream prometheus{
|
||||||
server http://prometheus:9090;
|
server prometheus:9090;
|
||||||
}
|
}
|
||||||
|
|
||||||
upstream pushprox{
|
upstream pushprox{
|
||||||
server http://pushprox:8080;
|
server pushprox:8080;
|
||||||
}
|
}
|
||||||
|
|
||||||
upstream grafana{
|
upstream grafana{
|
||||||
server http://grafana:3000;
|
server grafana:3000;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Grafana server configuration
|
# Grafana server configuration
|
||||||
|
@ -7,6 +7,7 @@ services:
|
|||||||
# monitoring dashboard for prometheus
|
# monitoring dashboard for prometheus
|
||||||
grafana:
|
grafana:
|
||||||
container_name: grafana
|
container_name: grafana
|
||||||
|
hostname: grafana
|
||||||
image: grafana/grafana:8.5.22
|
image: grafana/grafana:8.5.22
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
networks:
|
networks:
|
||||||
@ -16,19 +17,29 @@ services:
|
|||||||
nginx:
|
nginx:
|
||||||
container_name: nginx
|
container_name: nginx
|
||||||
image: nginx:1.23.4
|
image: nginx:1.23.4
|
||||||
|
volumes:
|
||||||
|
- ${PWD}/configuration/nginx.conf:/etc/nginx/nginx.conf
|
||||||
|
ports:
|
||||||
|
- 3000:3000 # grafana port
|
||||||
|
- 8080:8080 # pushprox port
|
||||||
|
- 9090:9090 # prometheus UI port
|
||||||
networks:
|
networks:
|
||||||
- common-network
|
- common-network
|
||||||
|
restart: on-failure
|
||||||
|
|
||||||
# proxy for prometheus to traverse NAT
|
# proxy for prometheus to traverse NAT
|
||||||
pushprox:
|
pushprox:
|
||||||
|
container_name: pushprox
|
||||||
|
hostname: pushprox
|
||||||
image: prometheuscommunity/pushprox:master
|
image: prometheuscommunity/pushprox:master
|
||||||
|
networks:
|
||||||
|
- common-network
|
||||||
|
|
||||||
# prometheus time-series database
|
# prometheus time-series database
|
||||||
prometheus:
|
prometheus:
|
||||||
container_name: prometheus
|
container_name: prometheus
|
||||||
|
hostname: prometheus
|
||||||
image: bitnami/prometheus:2.43.0
|
image: bitnami/prometheus:2.43.0
|
||||||
volumes:
|
|
||||||
- ./
|
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
networks:
|
networks:
|
||||||
- common-network
|
- common-network
|
||||||
|
Reference in New Issue
Block a user