# The alert-on-stall task: a worker and Prometheus. Do not change the worker; write rules.yml and wire it in.
services:
  worker:
    image: python:3.12-alpine
    command: ["python", "-u", "/app/worker.py"]
    volumes:
      - ./worker.py:/app/worker.py:ro
  prometheus:
    image: prom/prometheus:v3.5.0
    volumes:
      - ./prometheus.yml:/etc/prometheus/prometheus.yml:ro
    ports:
      - "127.0.0.1:9090:9090"
