github.com/netdata/go.d.plugin@v0.58.1/docker-compose.yml (about)

     1  version: '3'
     2  services:
     3    netdata:
     4      build:
     5        context: .
     6        dockerfile: Dockerfile.dev
     7      ports:
     8        - '19999:19999'
     9      cap_add:
    10        - SYS_PTRACE
    11      security_opt:
    12        - apparmor:unconfined
    13      volumes:
    14        - /proc:/host/proc:ro
    15        - /sys:/host/sys:ro
    16        - ./mocks/tmp:/usr/local/apache2/logs:ro
    17      depends_on:
    18        - springboot2
    19        - httpd
    20  
    21    springboot2:
    22      build: mocks/springboot2
    23      ports:
    24        - '8080:8080'
    25  
    26    logstash:
    27      image: docker.elastic.co/logstash/logstash:7.3.1
    28      ports:
    29      - '9600:9600'
    30  
    31    httpd:
    32      image: httpd:2.4
    33      volumes:
    34        - ./mocks/httpd/httpd.conf:/usr/local/apache2/conf/httpd.conf:ro
    35        - ./mocks/tmp:/usr/local/apache2/logs:rw
    36  
    37    blackbox_probe:
    38      build: mocks/blackbox
    39      depends_on:
    40        - springboot2
    41        - httpd
    42      command:
    43        - '/bin/sh'
    44        - '-c'
    45        - |
    46          while :; do
    47            curl -o /dev/null http://springboot2:8080/hello || :
    48            curl -o /dev/null http://springboot2:8080/hello || :
    49            curl -o /dev/null http://springboot2:8080/ || :
    50            curl -o /dev/null http://httpd/ || :
    51            curl -o /dev/null -XPOST http://httpd/post || :
    52            curl -o /dev/null http://httpd/not_exist || :
    53            sleep 0.7
    54          done