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

bind-address override not working if using docker-compose #117

Open
bencivennil opened this issue Mar 16, 2021 · 1 comment
Open

bind-address override not working if using docker-compose #117

bencivennil opened this issue Mar 16, 2021 · 1 comment

Comments

@bencivennil
Copy link

Hi all,

if I start a container using docker-compose the value of bind-address is not what I expect to be looking at the dockerfile

this is my docker-compose.yml

services:    
  web:
    build: ./<path-to-dockerfile>
    container_name: mycontainer

in the docker file I use the latest-1604-php5 tag

after starting the container (everything seems almost good) I start the bash into it and I log into mysql using

mysql -u root

if I run the query

show variables like '%bind%';

the value is 127.0.0.1 and 0.0.0.0 as I would expect it to be.

If I run che image using docker run

the value of the variable is 0.0.0.0

Am I missing something?

Thanks,
Luca

@bencivennil bencivennil changed the title bind-address override not working is using docker-compose bind-address override not working if using docker-compose Mar 16, 2021
@mattrayner
Copy link
Owner

Hi @bencivennil,
I would recommend trying with the newer images as the php5 images are no longer directly supported. Please try on a newer image and see if the issue still persists

Thanks,
Matt

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

No branches or pull requests

2 participants