github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/examples/golang-pull/consul/docker-compose.yaml (about)

     1  ---
     2  version: '3.9'
     3  services:
     4    app:
     5      build:
     6        context: ./app
     7        dockerfile: ./Dockerfile
     8      depends_on:
     9        - consul
    10  
    11    pyroscope:
    12      image: 'pyroscope/pyroscope-dev:main'
    13      ports:
    14        - '4040:4040'
    15      command: server
    16      volumes:
    17        - ./config/pyroscope-server.yml:/etc/pyroscope/server.yml
    18      depends_on:
    19        - consul
    20  
    21    consul:
    22      image: 'hashicorp/consul:latest'
    23      ports:
    24        - '8500:8500'
    25        - '8600:8600/tcp'
    26        - '8600:8600/udp'
    27      command: agent
    28      volumes:
    29        - ./config/consul-server.json:/consul/config/server.json:ro