-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
40 lines (34 loc) · 1.51 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
ARG PROMETHEUS_VERSION=2.5.0
FROM prom/prometheus:v${PROMETHEUS_VERSION}
# ================================================================================================
# Inspiration: Docker Framework (https://github.com/zeroc0d3/docker-framework)
# Dwi Fahni Denni <[email protected]>
# ================================================================================================
# Core Contributors:
# - Mahmoud Zalt @mahmoudz
# - Bo-Yi Wu @appleboy
# - Philippe Trépanier @philtrep
# - Mike Erickson @mikeerickson
# - Dwi Fahni Denni @zeroc0d3
# - Thor Erik @thorerik
# - Winfried van Loon @winfried-van-loon
# - TJ Miller @sixlive
# - Yu-Lung Shao (Allen) @bestlong
# - Milan Urukalo @urukalo
# - Vince Chu @vwchu
# - Huadong Zuo @zuohuadong
# ================================================================================================
MAINTAINER "Laradock Team <[email protected]>"
user root
COPY ./config/prometheus/alert.rules /etc/prometheus/alert.rules
COPY ./config/prometheus/prometheus.yml /etc/prometheus/prometheus.yml
VOLUME [ "/prometheus" ]
WORKDIR /prometheus
EXPOSE 9090
ENTRYPOINT [ "/bin/prometheus" ]
CMD [ "--config.file=/etc/prometheus/prometheus.yml", \
"--storage.tsdb.path=/prometheus", \
"--web.console.libraries=/usr/share/prometheus/console_libraries", \
"--web.console.templates=/usr/share/prometheus/consoles", \
"--storage.tsdb.retention=200h", \
"--web.enable-lifecycle" ]