Resume ways of using dockers (web development) -
screenshot: my docker-compose wordpress
- i've learned last week how deploy 3 containers of wordpress, phpmyadmin , mysql. work fine. containers connected between them, using volume , same network. docker configured docker compose file. .yml used git of native operative system version changes.
- but found way same:
installed image of debian, added git, apache2, mariadb , phpmyadmin, connected , use "docker commit" save changes of development every time. - then, coworker told me use docker-file , add volumes use git versioning.
which best way? problems have first , second ways? there way?
from view search optimal deployment structure, long way go , find information about. here opinons:
i wouldn't recommend version because mix of operation system (win/linux) can cause big problems. example, line breaks, folder/file filename. docker compose idea right way setup test, dev enviroment local.
is outside of git, thats not optimal, solution when save everything.
is alright, done docker compose. here usage of volume can cause same problems 1. can use git versioning in commandline mode develop, don't recommend it.
alternative ways
use software able deploy remotely php server, phpstorm, eclipse, winscp use local develop application , link apache/php maschine or container on ftp/sftp. work local , transfer changed files running maschine or container. git versioning done on local maschine. can use mysql tools backup database local. if docker container brake can setup easy again. make sure save config files of apache, php, mysql git, makes resetup of docker container smart.
use (gitlab & gitlab ci), (bitbucket & bamboo), (git & jenkins) deploy php changes servers or docker containers. @ best read articles on continuous delivery , continuous integration. option suitable rollout customer or dev, beta systems.
Comments
Post a Comment