Endpoint IP not changed in Prometheus target specified in prometheus.yml

I want to use Prometheus with my spring boot project, I’m new in Prometheus that way i do not know why I get error describe in picture

enter image description here

My prometheus.yml like below

  scrape_interval: 10s

  - job_name: 'spring_micrometer'
    metrics_path: '/actuator/prometheus'
    scrape_interval: 5s
      - targets: ['']

I run prometheus by this command docker run -d -p 9090:9090 -v <path-to-prometheus.yml>:/etc/prometheus/prometheus.yml prom/prometheus

I notice my ip not show in Prometheus targets page :

enter image description here

Normally Endpoint IP must be like but I get http://localhost:9090/metrics and when I click I get error describe in picture 1

What I do wrong ?!, anyone can help me to resolve this issue and thanks.

Source: Docker Questions