Closed vaishaliwebkul closed 4 years ago
Description
I'm trying to deploy helpdesk code with docker but mysqladmin: connect to a server at 'localhost' failed
How to reproduce
Install project via -composer create-project uvdesk/community-skeleton helpdesk-project
Follow steps as mention in README.md file
-create image-> $ docker build -t uvdesk-docker . -deploy using container
If you wish to use a local database within container $ docker run -dit -p 8003:80 \ -e MYSQL_USER=uvdesk \ -e MYSQL_ROOT_PASSWORD=uvdesk \ -e MYSQL_PASSWORD=uvdesk123 \ -e MYSQL_DATABASE=uvdesk-demo \ --name uvdesk uvdesk-docker
try
$ docker run -dit -p 8003:80 -e MYSQL_USER = uvdesk -e MYSQL_ROOT_PASSWORD = uvdesk -e MYSQL_PASSWORD = uvdesk123 -e MYSQL_DATABASE = uvdesk-demo --host net --name uvdesk uvdesk-docker
Description
I'm trying to deploy helpdesk code with docker but mysqladmin: connect to a server at 'localhost' failed
How to reproduce
Install project via -composer create-project uvdesk/community-skeleton helpdesk-project
Follow steps as mention in README.md file
-create image-> $ docker build -t uvdesk-docker . -deploy using container
If you wish to use a local database within container $ docker run -dit -p 8003:80 \ -e MYSQL_USER=uvdesk \ -e MYSQL_ROOT_PASSWORD=uvdesk \ -e MYSQL_PASSWORD=uvdesk123 \ -e MYSQL_DATABASE=uvdesk-demo \ --name uvdesk uvdesk-docker