Prometheus Monitoring Server
Run Prometheus with Docker Compose for time-series metrics collection, scraping, and monitoring dashboards integration.
yaml
docker-compose.yml
services:
prometheus:
image: prom/prometheus:v3.2.1
restart: unless-stopped
ports:
- ${PROMETHEUS_PORT}:9090
volumes:
- prometheus_data:/prometheus
volumes:
prometheus_data:
.ENV
.env example
PROMETHEUS_PORT=9090
deployment
Quick Start
- Create a working directory named after the service.
- Copy the compose file and generated `.env` into that directory.
- Review the variables and replace placeholders with real values.
- Run `docker compose up -d`.
mkdir prometheus-monitoring-server
cd prometheus-monitoring-server
# create docker-compose.yml
# create .env
docker compose up -d