Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: bash folder not mounted on multi php setup. #997

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

1 participant