docker compose works

This commit is contained in:
Martin Ptáček
2023-04-18 18:11:45 +02:00
parent 3f7b474a63
commit 5f53e9efa3
2 changed files with 16 additions and 5 deletions

View File

@ -9,15 +9,15 @@ http{
# Upstream server definitions
upstream prometheus{
server http://prometheus:9090;
server prometheus:9090;
}
upstream pushprox{
server http://pushprox:8080;
server pushprox:8080;
}
upstream grafana{
server http://grafana:3000;
server grafana:3000;
}
# Grafana server configuration

View File

@ -7,6 +7,7 @@ services:
# monitoring dashboard for prometheus
grafana:
container_name: grafana
hostname: grafana
image: grafana/grafana:8.5.22
restart: on-failure
networks:
@ -16,19 +17,29 @@ services:
nginx:
container_name: nginx
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:
- common-network
restart: on-failure
# proxy for prometheus to traverse NAT
pushprox:
container_name: pushprox
hostname: pushprox
image: prometheuscommunity/pushprox:master
networks:
- common-network
# prometheus time-series database
prometheus:
container_name: prometheus
hostname: prometheus
image: bitnami/prometheus:2.43.0
volumes:
- ./
restart: on-failure
networks:
- common-network