docker-compose error
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