Prometheus keeps showing up on 9090 even if docker container not running

Following a tutorial. I have the following docker compose:

version: "3.9"
services:
  grafana:
    image: grafana/grafana
    ports:
      - 3000:3000

  prometheus:
    image: prom/prometheus
    ports:
      - 9090:9090
    volumes:
      - ./prometheus.yml:/etc/prometheus/prometheus.yml:ro

  postgres:
    image: postgres:12
    ports:
      - 5432:5432
    volumes:
      - ./backup:/var/lib/postgresql/data
    environment:
      POSTGRES_PASSWORD: postgrespassword
      POSTGRES_DB: shop

  postgres-exporter:
    image: prometheuscommunity/postgres-exporter
    ports:
      - 9187:9187
    environment:
      DATA_SOURCE_NAME: "postgresql://postgres:postgrespassword@postgres:5432/shop?sslmode=disable"
    links:
      - postgres
      - prometheus

And this as my prometheus.yml:

global:
  scrape_interval: 15s
  evaluation_interval: 15s

scrape_configs:
  - job_name: prometheus
    static_configs:
      - targets: ["localhost:9090"]
  - job_name: postgres-exporter
    static_configs:
      - targets: ["postgres-exporter:9187"]

I realized I needed to make some changes, so brought down the containers. But noticed I could still access:

http://xxx.xx.xx.xxx:9090/config

In checking the containers, it seemed to restart Prometheus. I disabled it again, checked on the browser, and saw it got restarted again. Additionally, any changes I make to prometheus.yml aren't reflected in the config.

I checked running services, there is no instance of prometheus running outside of docker. Disabling the docker service brings it down, but as soon as I re-enable it, it appears again, always with the old config.

any ideas? (have tried killing the port as well, just respawns)

CONTAINER ID   IMAGE                    COMMAND                  CREATED       STATUS       PORTS      NAMES
34c66a78b75e   prom/prometheus:latest   "/bin/prometheus --c…"   2 hours ago   Up 2 hours   9090/tcp   my-prometheus.1.iht6uk1okzlb3gc9y9jdaf2fg

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum