devilbox icon indicating copy to clipboard operation
devilbox copied to clipboard

fix: bash folder not mounted on multi php setup.

Open userwiths opened this issue 2 years ago • 0 comments

Fix Different behavior on Multi PHP setup.

Goal

Load the bashrc.sh (and the other sh files in the directory for that matter) regardless of which container you enter.

DESCRIPTION

I've created a sh script that displays some data on the screen when entering the container.

It shows correctly when executing docker-compose exec php bash but it does not show when running docker-compose exec php74 bash for example.

I was loading files manually until I got around to looking into issue #985 (same sort of issue) and it turns out that in the docker-compose.yml the bash directory is mounted to the container, but this is not true for the PHP containers in docker-compose.override.yml-php-multi.yml.

Applied the following changes and tested locally, now the sh scripts should execute regardless of which container you enter.

userwiths avatar Jul 29 '23 07:07 userwiths