简体   繁体   English

将Docker容器部署到AWS时,我是否还需要部署自己的反向代理?

[英]When deploying a Docker container to AWS, do i need to deploy my own reverse proxy as well?

I have a rails API to handle data and server logic for other client apps. 我有一个Rails API来处理其他客户端应用程序的数据和服务器逻辑。 When dockerizing and deploying it to AWS elastic beanstalk (generic docker - single container), it fails. 在对其进行docker化并将其部署到AWS Elastic beantalk(通用docker-单个容器)时,它会失败。 Do i need to deploy multiple containers, to include my own configuration of nginx? 我是否需要部署多个容器以包括我自己的Nginx配置? or does AWS have a way to handle the reverse proxy for me? 还是AWS有办法为我处理反向代理? Just looking for a little guidance. 只是在寻找一些指导。 If I have to handle nginx myself that's fine (and any pointers there would be nice), but I'm actually trying to offload as much setup and configuration as possible onto the services AWS provides and keep a more narrow focus on the code I need to write for the API itself 如果我必须亲自处理nginx(并且任何指针都会很好),但实际上我正在尝试将尽可能多的设置和配置分担到AWS提供的服务上,并更加专注于我需要的代码为API本身编写

You can use the AWS ALB, so the application load balancer ( https://aws.amazon.com/de/elasticloadbalancing/applicationloadbalancer/ ), which you deploy in the EC section and which does understand you container configuration, thus offers you to target a container / port in your ECB stack. 您可以使用AWS ALB,因此可以在EC部分中部署并且可以理解您的容器配置的应用程序负载均衡器( https://aws.amazon.com/de/elasticloadbalancing/applicationloadbalancer/ ),从而为您提供了在您的ECB堆栈中定位一个容器/端口。 This is the way you would avoid a own nginx container as the load balancer with a configuration, ALB will handle this for you, also with the SSL interception and the promise to be really reliable ( and some limitations ) 这是您避免使用自己的nginx容器作为具有配置的负载均衡器的方式,ALB会为您处理此问题,同时还会通过SSL拦截和保证确实可靠的承诺(以及某些限制)

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

相关问题 如何在我的公共域上为 AWS Lightsail Docker 容器执行 GET 请求 - How do I do a GET Request on my Public Domain for AWS Lightsail Docker Container 在AWS Multicontainer Docker环境中部署到特定容器 - Deploying to specific container in AWS multicontainer docker environment 如何在AWS ECS docker容器中获取AWS凭据? - How do I get AWS credentials in the AWS ECS docker container? 如何在运行 Docker 容器的 AWS EC2 实例上启用 HTTPS - How do I enable HTTPS on my AWS EC2 Instance running a Docker Container 如何在Docker容器中通过GPU访问来启动AWS Sagemaker培训工作? - How do I start an AWS Sagemaker training job with GPU access in my docker container? 在 AWS Beanstalk 上部署 docker 容器失败 - Deploy docker container fails on AWS Beanstalk Angular 2 应用程序部署在 AWS 上运行的 docker 容器中 - Angular 2 app deploy in a docker Container running on AWS 在 AWS beanstalk 上部署多容器 docker 应用程序时如何防止错误“设备上没有剩余空间”? - how to prevent error "no space left on device" when deploying multi container docker application on AWS beanstalk? Docker-AWS-接下来我需要做什么? - Docker - AWS - What do I need to do next? 部署 docker 容器到 ECS 时未定义的卷 - Undefined volume when deploying docker container to ECS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM