Skip to content

Commit 45cbabb

Browse files
committed
Pass the working directory path from the host to the dev environment containers.
1 parent 29df2d5 commit 45cbabb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ services:
4545
- PHP_FPM_GID=${PHP_FPM_GID-1000}
4646
- GITHUB_REF=${GITHUB_REF-false}
4747
- GITHUB_EVENT_NAME=${GITHUB_EVENT_NAME-false}
48+
- HOST_PATH=${PWD-}/${LOCAL_DIR-src}
4849

4950
volumes:
5051
- ./tools/local-env/php-config.ini:/usr/local/etc/php/conf.d/php-config.ini
@@ -101,6 +102,7 @@ services:
101102
- LOCAL_PHP_MEMCACHED=${LOCAL_PHP_MEMCACHED-false}
102103
- PHP_FPM_UID=${PHP_FPM_UID-1000}
103104
- PHP_FPM_GID=${PHP_FPM_GID-1000}
105+
- HOST_PATH=${PWD-}/${LOCAL_DIR-src}
104106

105107
volumes:
106108
- ./:/var/www

0 commit comments

Comments
 (0)