每个Docker映像是否都需要拥有自己的群集,任务定义,目标组和from应用程序互联网面向负载平衡器的路径?
我有以下项目结构:
服务组A:
- reactjs/ webpack a
- Express App a1
- Express App A2
- Express App A3
Service B:
- reactjs/ webpack B
- Express B1 Express B1
- Express B2 Service b2
Service b2 Service c:
- React JS/ WebPack C
- Express C Express App C1
- Express App C2
主服务:
- React JS/ WebPack Main
每个项目都有自己的Docker映像。
我如何制作AWS ECR中的Docker图像 每个服务是否需要从1个面向Internet的负载平衡器转发自己的群集,任务定义,目标组?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果使用ECS,则可以在同一任务定义中定义多个容器,并且它们将作为任务一起启动。然后,如果需要,您可以使用ECS服务进行扩展。
例如:
JSON ContainerDefinition键定义了多个容器。
If you use ECS you can define multiple containers in the same task definition and they will be launched together as tasks. Then you scale them with an ECS service if needed.
Check this gist for example : https://gist.github.com/anosulchik/29312f8b30fa6f88b9c997281d32d822
The JSON containerDefinitions key defines multiple container.