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

docker-compose error #28

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

docker-compose error #28

wants to merge 2 commits into from

Conversation

oesteve
Copy link

@oesteve oesteve commented Apr 10, 2021

Hi there ! I've been testing the demo project and I've had to make some changes to make it work:

There are some incompatibilities with the current version of docker mysql image on the docker-compose.yml. When run composer up the console outputs something like this:

    driftphp_demo_mysql            | 2021-04-10 07:06:13+00:00 [ERROR] [Entrypoint]: MYSQL_USER="root", MYSQL_USER and MYSQL_PASSWORD are for configuring a regular user and cannot be used for the root user
    driftphp_demo_mysql            |     Remove MYSQL_USER="root" and use one of the following to control the root user password:
    driftphp_demo_mysql            |     - MYSQL_ROOT_PASSWORD
    driftphp_demo_mysql            |     - MYSQL_ALLOW_EMPTY_PASSWORD
    driftphp_demo_mysql            |     - MYSQL_RANDOM_ROOT_PASSWORD
    driftphp_demo_mysql exited with code 1

I've had to remove the MYSQL_USER variable for it to work. Note that you may need to delete the current container if you want to reproduce it.

docker-compose -f docker-compose/docker-compose.yml rm -a -f

Add this command to docker-compose-build.sh script might be a good idea.

On the other hand, a definition of env_file is missing in driftphp_demo_tiny balancer, however I have not been able to make it work with my current version of docker-compose, I have needed to put the .env file in the docker-compose directory:

# docker -v
Docker version 20.10.5, build 55c4c88
# docker-compose -v
docker-compose version 1.29.0, build 07737305

Thanks to the team for the fantastic work.

Cheers

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