Open nickchomey opened 1 year ago
You need hardlinks für the ini files, See https://github.com/cytopia/devilbox/pull/952
Thank you. I didn't find that PR in my initial searches.
Will there be an effort at some point to allow symlinks, like is possible with .env
? If not, will you merge the PR you liked to that adds documentation about this?
Have you already looked into this bug?
(Optional) Error message
No response
What went wrong?
I have created a folder exterior to Devilbox that contains my various configurations (
.env
,docker-compose.override.yml
, etc...). I have also included files likexdebug.ini
, which I symlink into/devilbox/cfg/php-ini-8.1
. It also contains the data directory that contains my webapps/virtual hosts, which are pulled in viaHOST_PATH_HTTPD_DATADIR
.The
.env
anddocker-compose.override.yml
work fine, butxdebug.ini
andphp-fpm-8.1/devilbox-fpm.conf
do not work when symlinked. I have to delete the symlinks and then create a file with the exact same contents.Expected behaviour
I'd expect symlinks to work for any config file
How can we reproduce the bug?
Try the steps mentioned above.
Host Operating System
Linux
Host Platform (amd64, arm64, other)
amd64
(Linux only) Is SELinux enabled?
Yes, SELinux is enabled
Docker version
Docker version 23.0.1, build a5ee5b1
Docker Compose version
Docker Compose version v2.16.0
Devilbox version
Devilbox v3.0.0-beta-0.3 10b20c0
Have you removed stopped containers before starting?
Yes
Have you pulled latest Docker images before starting?
Yes
Devilbox start command
docker compose up httpd bind php mysql redis
Config: .env file
Config: docker-compose.override.yml
No response
Config: ./check-config.sh
Log: docker-compose logs
(Optional) Additional information
This shows up in the docker log when I DONT use symlink. And the
/etc/php-custom.d/xdebug.ini
shows inhttp://127.0.0.1/info_php.php