13 lines
434 B
Docker
13 lines
434 B
Docker
FROM prom/prometheus:latest
|
|
|
|
COPY prometheus.yml /etc/prometheus/prometheus.yml
|
|
|
|
# Expose the Prometheus UI and metrics endpoint
|
|
EXPOSE 9090
|
|
|
|
# Run Prometheus with the config file
|
|
CMD ["--config.file=/etc/prometheus/prometheus.yml", \
|
|
"--storage.tsdb.path=/prometheus", \
|
|
"--web.console.libraries=/etc/prometheus/console_libraries", \
|
|
"--web.console.templates=/etc/prometheus/consoles", \
|
|
"--web.enable-lifecycle"] |