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

     1  version: '3.9'
     2  services:
     3    grafana:
     4      image: grafana/grafana:latest
     5      volumes:
     6        - ./grafana-provisioning:/etc/grafana/provisioning
     7        - ./grafana/grafana.ini:/etc/grafana/grafana.ini
     8        - ./grafana/home.json:/default-dashboard.json
     9      ports:
    10        - 3000:3000
    11  
    12    pyroscope:
    13      image: 'grafana/phlare:weekly-f22-06e09923'
    14      ports:
    15        - 4100:4100
    16      command: -config.file=/etc/pyroscope/config.yaml
    17      volumes:
    18        - ./pyroscope/config.yaml:/etc/pyroscope/config.yaml
    19  
    20    agent:
    21      image: grafana/agent:latest
    22      volumes:
    23        - ./agent/config:/etc/agent-config
    24      command:
    25        - run
    26        - /etc/agent-config/config.river
    27        - --server.http.listen-addr=0.0.0.0:12345
    28      environment:
    29        HOSTNAME: agent
    30        AGENT_MODE: flow
    31      ports:
    32        - "12345:12345"