ugoviti / izpbx

izPBX is a Turnkey Cloud Native Telephony System powered by Asterisk Engine and FreePBX Management GUI
GNU General Public License v3.0
179 stars 74 forks source link

Multi-Tenant VoIP PBX with shared global Database and single docker-compose.yml file #43

Closed michaelfangtw closed 1 year ago

michaelfangtw commented 1 year ago

in the multi-tenant's docker-compose.yml sample: env_file:

env_file = db.env id not working, shows error below, after change env_file to .env , it works well. maybe it has some problem in mariadb's docker file to read the [env_file] for enviornment variable.

docker logs show error: [ERROR] [Entrypoint]: Database is uninitialized and password option is not specified You need to specify one of MARIADB_ROOT_PASSWORD, MARIADB_ROOT_PASSWORD_HASH, MARIADB_ALLOW_EMPTY_ROOT_PASSWORD and MARIADB_RANDOM_ROOT_PASSWORD

ugoviti commented 1 year ago

Hi, what is the content of your db.dev file?

inside this file you must place the MYSQL variables, like:

MYSQL_ROOT_PASSWORD=39oidl6GT9ZebMtjq2heJV747EIs

Kind Regards

michaelfangtw commented 1 year ago

db.env 's content is the same with .env and I check the variable of mysql_root_password id the default value that I didn't change it (MYSQL_ROOT_PASSWORD=CHANGEM3)

did I need to change it to work ??

ugoviti commented 1 year ago

I don't know the root cause of your problem. Anyway, using .env file you solved the problem?

michaelfangtw commented 1 year ago

yes,I finally try use the name .env and it works. thanks for your time to reply .

ugoviti commented 1 year ago

Happy to know that, thank you for your reply.