github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/examples/php-fpm/docker-compose.yml (about) 1 --- 2 version: '3.9' 3 services: 4 pyroscope: 5 container_name: pyroscope 6 image: 'pyroscope/pyroscope:latest' 7 ports: 8 - '4040:4040' 9 command: 10 - 'server' 11 php: 12 container_name: pyroscope_php-fpm 13 build: 14 context: . 15 dockerfile: php/Dockerfile 16 cap_add: 17 - SYS_PTRACE 18 environment: 19 - EXECUTION_TIMEOUT=0 # 0 equals infinity 20 cgi-client: 21 container_name: pyroscope_cgi_client 22 build: 23 context: . 24 dockerfile: client-cgi/Dockerfile 25 command: cgi-fcgi -bind -connect pyroscope_php-fpm:9000 26 depends_on: 27 - php 28 environment: 29 - SCRIPT_FILENAME=index.php 30 - REQUEST_METHOD=GET