Repack of prometheus with the usual Homecentr bells and whistles.
version: "3.7"
services:
prometheus:
image: homecentr/prometheus
ports:
- 9090:9090
volumes:
- ./example:/prometheus
Name | Default value | Description |
---|---|---|
PUID | 7077 | UID of the user prometheus should be running as. |
PGID | 7077 | GID of the user prometheus should be running as. |
PROMETHEUS_ARGS | See the Dockerfile | Additional command line arguments passed to the Prometheus executable. |
Port | Protocol | Description |
---|---|---|
9090 | TCP | Web UI and API. |
Container path | Description |
---|---|
/config | Prometheus configuration. This should container the prometheus.yml configuration file. |
/prometheus | Prometheus state. Make sure the volume is writable for PUID/PGID. |
The container is regularly scanned for vulnerabilities and updated. Further info can be found in the Security tab.
The container supports privilege drop. Even though the container starts as root, it will use the permissions only to perform the initial set up. The prometheus process runs as UID/GID provided in the PUID and PGID environment variables.
user
Docker compose property or using the --user
argument. This would break the privilege drop logic.