Skip to content

Conversation

@userwiths
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant