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

求助修改EIP不生效 #98

Closed
lingwf95 opened this issue Jun 22, 2022 · 3 comments
Closed

求助修改EIP不生效 #98

lingwf95 opened this issue Jun 22, 2022 · 3 comments

Comments

@lingwf95
Copy link

根据 Docker-compose 一键构建安装 教程中 修改 docker-compose.yml 中的 EIP 参数
image

启动服务
docker-compose up -d
发现请求接口 是 x.x.x.x
image

请问是配置 docker-compose.yml EIP 参数还需要做些什么吗?

@Jonnyan404
Copy link
Contributor

如果首次未修改,删除映射目录下的配置文件,
然后
按二次更新操作

@lingwf95
Copy link
Author

映射目录 指的是哪个目录?

我直接修改了docker-compose.yml 中的 EIP 参数,再 docker-compose build ,请求连接生效了,但是接口的跨域配置还是 x.x.x.x。
image

在前端页面域名跟接口域名不是同一个需要怎么配置?

@lingwf95
Copy link
Author

没有找到如何修改这个跨域配置。所以进入docker容器进行修改后能够正常访问

docker exec -it thinkdoc sh
# cd /app
vi config/prod.yaml
# 替换 'x.x.x.x' 为访问的IP


# 退出容器, 重启容器
docker-composer restart

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

3 participants