Sunday, 15 July 2012

node.js - How to deploy an application using Docker -



node.js - How to deploy an application using Docker -

i have node.js application depends on phantom.js. since both node , phantom.js not breeze set up, created docker container this. how deploy updates of application docker container running on our production server.

for me, there 2 possibilities.

set ssh , force git repository straight docker container add volume , update repository outside container

i tend latter, i'm not sure there improve way.

thanks in advance!

both ways allow update application in existing container.

however happens if delete container?

in sec way can recreate brand new container linked same volume holds app in first way have connect ssh , upload app code

moreover dockerfile more complicated in first case , more hard maintain. have take care of security issues , create sure whole world won't able connect ssh server.

to sum up, create kiss , go volume way. consider adding ssh service if need more pushing files.

node.js git deployment docker

No comments:

Post a Comment