Bottelet / DaybydayCRM

DaybydayCRM an open-source CRM, to help you keep track of your daily workflow.
https://daybydaycrm.com
2.24k stars 753 forks source link

Fix docker db error #286

Open rm-yakovenko opened 2 years ago

rm-yakovenko commented 2 years ago

Fix docker db error

dbMain            |     Remove MYSQL_USER="root" and use one of the following to control the root user password:
dbMain            |     - MYSQL_ROOT_PASSWORD
dbMain            |     - MYSQL_ALLOW_EMPTY_PASSWORD
dbMain            |     - MYSQL_RANDOM_ROOT_PASSWORD

This should solve #284

Bottelet commented 2 years ago

Hi @rm-yakovenko . Sorry not sure i understand how that fixes it?

rm-yakovenko commented 2 years ago

Hi @Bottelet!

The issue is in the default docker-compose configuration.

The db container cannot start because of the following error:

➜  DaybydayCRM git:(master) docker-compose up db
Creating dbMain ... done
Attaching to dbMain
dbMain            | 2022-01-28 09:10:06+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.37-1debian10 started.
dbMain            | 2022-01-28 09:10:06+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
dbMain            | 2022-01-28 09:10:06+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.37-1debian10 started.
dbMain            | 2022-01-28 09:10:06+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
dbMain            |     Remove MYSQL_USER="root" and use one of the following to control the root user password:
dbMain            |     - MYSQL_ROOT_PASSWORD
dbMain            |     - MYSQL_ALLOW_EMPTY_PASSWORD
dbMain            |     - MYSQL_RANDOM_ROOT_PASSWORD

That leads to https://github.com/Bottelet/DaybydayCRM/issues/284#issuecomment-1010579677