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

chore: add docker deployment #69

Merged
merged 10 commits into from
May 5, 2023
Merged

chore: add docker deployment #69

merged 10 commits into from
May 5, 2023

Conversation

gityh2021
Copy link
Contributor

@gityh2021 gityh2021 commented Apr 14, 2023

What type of PR is this?

chore

Check the PR title.

  • This PR title match the format: <type>(optional scope): <description>
  • The description of this PR title is user-oriented and clear enough for others to understand.
  • Attach the PR updating the user documentation if the current PR requires user awareness at the usage level. User docs repo

(Optional) Translate the PR title into Chinese.

增加Docker部署方式

(Optional) More detailed description for this PR(en: English/zh: Chinese).

en:
zh(optional):

(Optional) Which issue(s) this PR fixes:

#34

(optional) The PR that updates user documentation:

@gityh2021 gityh2021 requested review from a team as code owners April 14, 2023 12:16
@gityh2021
Copy link
Contributor Author

现在的思路是这样的:
docker-compose-up会创建一个默认的bridge网络:easy_note_default。
然后去查找easy_note_default这个网络的网关IP地址。
将这网关IP地址作为etcd、mysql、jaeger的ip地址写到Dockerfile里面。
容器内的kitex服务注册发现不能用本地地址,随机发一个udp包去拿到容器ip,将容器ip写入etcd做服务注册发现。

@YangruiEmma YangruiEmma self-requested a review April 17, 2023 11:09
@li-jin-gou li-jin-gou merged commit 87dc08a into cloudwego:main May 5, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants