简体   繁体   English

AWS Beanstalk 中的 Spring 启动微服务

[英]Spring boot Microservices in AWS Beanstalk

I have Spring boot micro services which I would like to deploy using AWS Beanstalk.我有我想使用 AWS Beanstalk 部署的 Spring Boot 微服务。 Question is how can I deploy multiple services with one bean stalk deployment?问题是如何使用一个 bean stalk 部署来部署多个服务? I thought of creating a zip file with runnable jars (my microservices) along with .elasticbeanstalk/config.yml file.我想用可运行的 jars(我的微服务)和 .elasticbeanstalk/config.yml 文件创建一个 zip 文件。 However I could not find a way to add multiple files to config.yml in deploy section.但是,我找不到将多个文件添加到部署部分中的 config.yml 的方法。

Please help.请帮忙。

Please check if Multicontainer Docker configuration is an option for you.请检查多容器 Docker 配置是否适合您。

You can create docker environments that support multiple containers per Amazon EC2 instance with multicontainer Docker platform for Elastic Beanstalk.您可以使用适用于 Elastic Beanstalk 的多容器 Docker 平台创建支持每个 Amazon EC2 实例的多个容器的 Docker 环境。

.... ....

A Dockerrun.aws.json file is an Elastic Beanstalk–specific JSON file that describes how to deploy a set of Docker containers as an Elastic Beanstalk application. Dockerrun.aws.json 文件是特定于 Elastic Beanstalk 的 JSON 文件,它描述了如何将一组 Docker 容器部署为 Elastic Beanstalk 应用程序。 You can use a Dockerrun.aws.json file for a multicontainer Docker environment.您可以将 Dockerrun.aws.json 文件用于多容器 Docker 环境。

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_docker_ecs.html https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_docker_ecs.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM