meteorhacks / meteord

MeteorD - Docker Runtime for Meteor Apps for Production Deployments
https://registry.hub.docker.com/u/meteorhacks/meteord/
MIT License
439 stars 371 forks source link

Problem with --link db:mysql #28

Open ghost opened 9 years ago

ghost commented 9 years ago

Hello @arunoda,

Do you know whether it is possible to use meteord with mysql containers? I am trying to use numtel:mysql package together with mysql container, but to no avail.

First of all I start mysql container: docker run --name db -e MYSQL_ROOT_PASSWORD=password mysql

Then I try to use meteord: docker build -t app . docker run -d -p 80:80 -e ROOT_URL=http://localhost -e MONGO_URL=mongodb://localhost:27017 -e MONGO_OPLOG_URL=mongodb://localhost:27017/2 --link db:mysql app

Unfortunately, when I enter http://localhost, data from mysql database are not visible. Do you know how to check any logs from meteor app run by meteord?

Thanks, Tommy

arunoda commented 9 years ago

meteord runs the meteor app as a node app. So, logs will be just print to the console. Or can get via docker directly. docker logs <container-id/name>

I'm quite not sure numtel's package works. But once you like link this, you'll be able to access it via mysq hostname inside the container. You may need to set the mysql URL via env. variables.