How do I get my dreamweaver site to use my nginx docker container as a web test server?

折月煮酒 提交于 2019-12-12 21:05:01

问题


I'm new to using docker though I followed the tutorials to create a nginx web server container and I have a website created in Dreamweaver. I was wanting to know how I can use the virtual web server to host my Dreamweaver site as a test server. Can I just open the kitematic and grab a nginx and place my Dreamweaver file into like the 2048 (game) example on there website?


回答1:


This question is pretty broad but in essence you'd want to start with the nginx docker image. Create a Dockerfile that copies and configures your dreamweaver app and use the FROM nginx directive.

More info here




回答2:


I think that using a FROM nginx is a bad idea. NGINX is a service on its own and should run within a docker as a stand-alone.

Your website-docker and your nginx-docker should communicate together using --link <name or id>:alias.

If you have several websites, you should have several dockers but still only one nginx. So if every websites docker embedded their own nginx that's messy and far away from the best practice...



来源:https://stackoverflow.com/questions/33990632/how-do-i-get-my-dreamweaver-site-to-use-my-nginx-docker-container-as-a-web-test

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!