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

  1. Create a working directory named after the service.
  2. Copy the compose file and generated `.env` into that directory.
  3. Review the variables and replace placeholders with real values.
  4. Run `docker compose up -d`.
mkdir prometheus-monitoring-server
cd prometheus-monitoring-server
# create docker-compose.yml
# create .env
docker compose up -d