docker inspect name-container
Go to the end, Networks → Gateway
Add → prometheus.yml
targets: IP-GATEWAY:8086