File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
examples/instrumentation/yii/fpm Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 11server {
22 index index.php index.html;
33 server_name phpfpm.local;
4+ root /var/www/html/web;
45 error_log /var/log/nginx/error.log;
56 access_log /var/log/nginx/access.log;
67 location / {
@@ -9,7 +10,6 @@ server {
910 }
1011 }
1112 location ~ \.php$ {
12- root /var/www/html/web;
1313 fastcgi_split_path_info ^(.+\.php)(/.+)$;
1414 fastcgi_pass php-fpm:9000;
1515 fastcgi_index index.php;
Original file line number Diff line number Diff line change @@ -6,10 +6,13 @@ services:
66 - ' 80:80'
77 volumes :
88 - ./default.conf:/etc/nginx/conf.d/default.conf
9+ - shared-web:/var/www/html/web
910 links :
1011 - php-fpm
1112 php-fpm :
1213 build : .
14+ volumes :
15+ - shared-web:/var/www/html/web
1316 environment :
1417 OTEL_PHP_AUTOLOAD_ENABLED : true
1518 OTEL_SERVICE_NAME : otel-demo-php
@@ -23,3 +26,5 @@ services:
2326 COLLECTOR_OTLP_ENABLED : " true"
2427 ports :
2528 - 16686:16686
29+ volumes :
30+ shared-web :
You can’t perform that action at this time.
0 commit comments