Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

多项目的问题 #9

Open
zmeng9 opened this issue Apr 13, 2019 · 1 comment
Open

多项目的问题 #9

zmeng9 opened this issue Apr 13, 2019 · 1 comment

Comments

@zmeng9
Copy link

zmeng9 commented Apr 13, 2019

你好,在生产环境中,我已经构建了第一个项目,docker-compose文件里含有nginx(映射到433),django,db,并成功运行。
我的问题是:我的第二个django项目的docker-compose应该怎么写呢?
我应该如何连接到第一个项目创建的nginx?

@twtrubiks
Copy link
Owner

Hi @hauer9 我這個教學算是比較基本的教學,回答你的問題,你可以查一下 Nginx VirtualHosting 這些關鍵字,基本上,就是指到另一個 port 就 ok 了,有很多 nginx image 都幫你弄好了,只需要稍微設定一下即可。希望對你有幫助。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants