github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/examples/metrics-export/docker-compose.yml (about)

     1  version: '3.9'
     2  
     3  services:
     4    prometheus:
     5      image: prom/prometheus:latest
     6      volumes:
     7        - ./prometheus:/etc/prometheus/
     8        - data-prometheus:/prometheus
     9  
    10    grafana:
    11      image: grafana/grafana:8.1.1
    12      volumes:
    13        - ./grafana:/etc/grafana
    14      ports:
    15        - 3000:3000
    16  
    17    pyroscope:
    18      image: pyroscope/pyroscope:latest
    19      ports:
    20        - 4040:4040
    21      command: ['server', '--config', '/etc/pyroscope/server.yml']
    22      volumes:
    23        - ./pyroscope:/etc/pyroscope
    24  
    25    app-staging:
    26      build:
    27        context: app
    28      environment:
    29        APP_ENV: staging
    30  
    31    app-prod:
    32      build:
    33        context: app
    34      environment:
    35        APP_ENV: prod
    36  
    37  volumes:
    38    data-prometheus:
    39      driver: local