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

fix:前端项目使用nginx服务代理,不在使用后端服务代理 #100

Merged
merged 2 commits into from
Apr 29, 2024

Conversation

chaorenluo
Copy link
Contributor

1.更改Dockerfile文件
加入安装nginx 命令RUN apt-get update && \ apt-get install -y nginx
加入覆盖nginx配置文件的命令COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
更改暴露的端口号由后端服务的3000端口更改为nginx的8080端口
2.更改docker-run.sh 文件加入启动nginx的命令 nginx -g 'daemon on;'
3.修改docker-compose.yaml 文件将项目将暴露的"8080:3000" 更改为 "8080:8080"
4.在项目根目录新建了一个nginx的文件夹里面创建nginx.conf 用于覆盖默认的nginx配置

@sudoooooo sudoooooo merged commit 8061473 into didi:develop Apr 29, 2024
sudoooooo pushed a commit that referenced this pull request May 20, 2024
* fix:前端项目使用nginx服务代理,不在使用后端服务代理

* fix:修改备注
skique pushed a commit that referenced this pull request Aug 26, 2024
* fix:前端项目使用nginx服务代理,不在使用后端服务代理

* fix:修改备注
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

Successfully merging this pull request may close these issues.

2 participants