added docker and docker-compose#63
Conversation
Signed-off-by: kmjayadeep@gmail.com <kmjayadeep@gmail.com>
|
@kmjayadeep Have you tried running the project with the attached docker-compose? Looks like you haven't gone through the project and added the docker-compose file. |
| image: mysql/mysql-server | ||
| command: --default-authentication-plugin=mysql_native_password | ||
| environment: | ||
| - MYSQL_ROOT_PASSWORD=root_pass |
There was a problem hiding this comment.
What's the use of .env file if we are exposing them in docker-compose itself.
There was a problem hiding this comment.
I will move them to the .env.docker file then
There was a problem hiding this comment.
As I see it .env files are great for situations where controlling the real environment variables is awkward, in the case of using docker-compose, or deploying to Kubernetes, using environment variables is usually the better and easier approach.
While env fils are well suited to local development.
What do you think @ankitjain28may?
There was a problem hiding this comment.
I just read the documentation of env_file in docker-compose, and wow, I did not realise it supported .env files directly :-) that is going to make things nicer sometimes!
Yes I have. Application is running fine inside docker. Actually, it didn't work properly outside docker as I have some issues with php installation. May I know what the problem is? |
Signed-off-by: kmjayadeep@gmail.com <kmjayadeep@gmail.com>
|
@kmjayadeep There is one more service that runs along with db and php server and that service is responsible for sending/receiving messages, Please add that service in the docker-compose and try to check whether it is working or not. The main idea of using supervisor is because of running both the services together |
|
Totally missed that! I will check again. |
|
@kmjayadeep No problem, if you need any help, ping me :) |
Signed-off-by: Jayadeep KM <kmjayadeep@gmail.com>
|
@ankitjain28may Added socket service. Please give a try. |
Closes #26
Application can be run in docker by using the command
docker-compose upSigned-off-by: kmjayadeep@gmail.com kmjayadeep@gmail.com