Skip to content

Instantly share code, notes, and snippets.

@morsik
Created April 19, 2024 12:18
Show Gist options
  • Save morsik/ab70c4752621ff3e49bc93c8b2cb73ab to your computer and use it in GitHub Desktop.
Save morsik/ab70c4752621ff3e49bc93c8b2cb73ab to your computer and use it in GitHub Desktop.
FROM prom/prometheus:v2.51.2
COPY prometheus.yml /etc/prometheus/prometheus.yml
COPY web.yml /etc/prometheus/web.yml
COPY entrypoint.sh /entrypoint.sh
ENV TZ=Europe/Warsaw
ENTRYPOINT ["/entrypoint.sh"]
#!/bin/sh
exec /bin/prometheus --web.enable-admin-api --config.file=/etc/prometheus/prometheus.yml --web.config.file=/etc/prometheus/web.yml --web.listen-address=:$PORT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment