diff --git a/api/monitoring/grafana/Dockerfile b/api/monitoring/grafana/Dockerfile new file mode 100644 index 00000000..624fc546 --- /dev/null +++ b/api/monitoring/grafana/Dockerfile @@ -0,0 +1,14 @@ +FROM grafana/grafana +LABEL authors="dario" +# Define the source and destination directories +COPY_SOURCE = ./provisioning +COPY_DESTINATION = /etc/grafana/provisioning + +# Copy the configuration files +COPY ${COPY_SOURCE}/* ${COPY_DESTINATION} + +# Expose the default Grafana port +EXPOSE 9091 + +# Run Grafana in the foreground +CMD ["grafana-server"] \ No newline at end of file diff --git a/api/monitoring/prometheus/Dockerfile b/api/monitoring/prometheus/Dockerfile new file mode 100644 index 00000000..13f90329 --- /dev/null +++ b/api/monitoring/prometheus/Dockerfile @@ -0,0 +1,14 @@ +FROM prom/prometheus +LABEL authors="dario" +# Define the source and destination directories +COPY_SOURCE = ./configuration +COPY_DESTINATION = /etc/prometheus + +# Copy the configuration files +COPY ${COPY_SOURCE}/* ${COPY_DESTINATION} + +# Expose the default Prometheus port +EXPOSE 9090 + +# Run Prometheus in the foreground +CMD ["prometheus"] diff --git a/api/monitoring/prometheus/prometheus.yml b/api/monitoring/prometheus/configuration/prometheus.yml similarity index 100% rename from api/monitoring/prometheus/prometheus.yml rename to api/monitoring/prometheus/configuration/prometheus.yml