Skip to content

Commit c800e97

Browse files
authored
Fix Yii-example (#469)
1 parent 7344582 commit c800e97

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

examples/instrumentation/yii/fpm/default.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
server {
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;

examples/instrumentation/yii/fpm/docker-compose.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)