I have next service at docker compose file:
prometheus:
depends_on:
- promscale
image: prom/prometheus:latest
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
At portainer
I can see that this service mounted at /prometheus
:
But I can not understand where is definition for this mount and where it is mounted?
I can not find, neither at host or at container, /prometheus
folder
CodePudding user response:
The definition is inside Dockerfile https://github.com/prometheus/prometheus/blob/main/Dockerfile#L23 :
VOLUME [ "/prometheus" ]