ERPNext.com Frappe Cloud Support Partners Foundation Frappe School

MARIADB_HOST or POSTGRES_HOST is not set

I am trying to run ErpNext on Docker, but getting below log while trying to run container.

MARIADB_HOST or POSTGRES_HOST is not set

Docker Pull Command -
docker pull frappe/erpnext-worker

@revant_one can you please help here?

share credentials.

with this limited info I can’t help.

and asking more info will take 3-4 posts

My Mariadb Credentials -

Hostname/IP- 127.0.0.1
Port- 3306
User- root
Password- 123

Please let me know if you need any other info…

Did I missed any paramerter while trying to run ErpNext docker image?
docker run frappe/erpnext-worker

Issue is - Environment variables are getting fetching while running ErpNext container.

When I pass Env variables manually, then container get started.

Why environment file is not fetching in ErpNext docker container?

check this https://github.com/frappe/frappe_docker/wiki/Troubleshoot#docker-compose-does-not-recognize-variables-from-env-file

how did you install docker-compose? try official docker-compose installation?