@@ -98,9 +98,9 @@ public function __construct( string $root_dir, string $project_name, string $tld
98
98
*/
99
99
protected function get_php_reusable () : array {
100
100
$ version_map = [
101
- '8.2 ' => 'humanmade/altis-local-server-php:8.2.3 ' ,
102
- '8.1 ' => 'humanmade/altis-local-server-php:6.0.5 ' ,
103
- '8.0 ' => 'humanmade/altis-local-server-php:5.0.4 ' ,
101
+ '8.2 ' => 'humanmade/altis-local-server-php:8.2.5 ' ,
102
+ '8.1 ' => 'humanmade/altis-local-server-php:6.0.7 ' ,
103
+ '8.0 ' => 'humanmade/altis-local-server-php:5.0.7 ' ,
104
104
'7.4 ' => 'humanmade/altis-local-server-php:4.2.5 ' ,
105
105
];
106
106
@@ -120,6 +120,17 @@ protected function get_php_reusable() : array {
120
120
121
121
$ image = $ version_map [ $ version ];
122
122
123
+ $ volumes = [
124
+ $ this ->get_app_volume (),
125
+ "{$ this ->config_dir }/php.ini:/usr/local/etc/php/conf.d/altis.ini " ,
126
+ 'socket:/var/run/php-fpm ' ,
127
+ 'tmp:/tmp ' ,
128
+ ];
129
+
130
+ if ( $ this ->args ['xdebug ' ] !== 'off ' ) {
131
+ $ volumes [] = "{$ this ->config_dir }/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini " ;
132
+ }
133
+
123
134
$ services = [
124
135
'init ' => true ,
125
136
'depends_on ' => [
@@ -148,12 +159,7 @@ protected function get_php_reusable() : array {
148
159
"proxy:s3- {$ this ->hostname }" ,
149
160
"proxy:s3- {$ this ->project_name }.localhost " ,
150
161
],
151
- 'volumes ' => [
152
- $ this ->get_app_volume (),
153
- "{$ this ->config_dir }/php.ini:/usr/local/etc/php/conf.d/altis.ini " ,
154
- 'socket:/var/run/php-fpm ' ,
155
- 'tmp:/tmp ' ,
156
- ],
162
+ 'volumes ' => $ volumes ,
157
163
'networks ' => [
158
164
'proxy ' ,
159
165
'default ' ,
0 commit comments