php - Docker - Application source code updates -


i know source code of application should copied using add live inside of docker container.

this seems idea, if want able update application source code - twice day, or more often?

most viable solution keep source code outside of application. can keep machine running , update source code using git.

machine created this:

docker run -p 80:80 -v /home/adam/projects/docker-test/src:/var/www/html webserver

this means though if controlling machine onprem server, infrastructure on ec2, each time website opened files pulled on internet.

what best solution issue? able keep redeploying container updated source code no downtime?

actually, should copied copy, not add, in order limit cache invalidation.

most viable solution keep source code outside of application.

yes, instead of referring through remote source (a git server), have webhook (like github one) which, on each push git server, pull said repo , keep up-to-date copy of source locally.

then mount local repo volume in image.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -