Skip to content

Commit aac3326

Browse files
authored
Merge pull request #25 from dappnode/update_grafana_prometheus
Add UPSTREAM parameter and update versions
2 parents 643ec40 + 795ec8d commit aac3326

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

docker-compose.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
version: "3.4"
22
services:
33
grafana:
4-
build: ./grafana
4+
build:
5+
context: grafana
6+
args:
7+
UPSTREAM_VERSION: 8.1.5
58
image: "grafana.dms.dnp.dappnode.eth:1.0.1"
69
restart: always
710
volumes:
811
- "grafana_data:/var/lib/grafana"
912
prometheus:
10-
build: ./prometheus
13+
build:
14+
context: prometheus
15+
args:
16+
UPSTREAM_VERSION: v2.30.0
1117
image: "prometheus.dms.dnp.dappnode.eth:1.0.1"
1218
restart: always
1319
volumes:

grafana/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
FROM grafana/grafana:7.3.3
1+
ARG UPSTREAM_VERSION
2+
3+
FROM grafana/grafana:${UPSTREAM_VERSION}
24

35
USER root
46

prometheus/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
FROM prom/prometheus
1+
ARG UPSTREAM_VERSION
2+
3+
FROM prom/prometheus:${UPSTREAM_VERSION}
24

35
COPY prometheus.yml /etc/prometheus/
46

0 commit comments

Comments
 (0)