version: "3.3" networks: vnet-prometheus: external: name: vnet-prometheus volumes: prometheus_data: external: true services: prometheus: image: prom/prometheus:v2.29.0 restart: unless-stopped ports: - 9090:9090 environment: {} networks: - vnet-prometheus volumes: - type: bind source: $PWD/prometheus/conf/prometheus.yml target: /etc/prometheus/prometheus.yml read_only: true # Volume de stockage indépendant pour les données - type: volume source: prometheus_data target: /prometheus read_only: false