[英]EB with docker multi-container and Node
Im using Elastic Beanstalk with Docker Multi-Container. 我在Docker Multi-Container中使用Elastic Beanstalk。
My configuration (in Elastic Beanstalk) is: 我的配置(在Elastic Beanstalk中)是:
The file 'Dockerrun.aws.json' is: 文件Dockerrun.aws.json是:
{
"AWSEBDockerrunVersion": 2,
"volumes": [
{
"name": "mynodeapp",
"host": {
"sourcePath": "/var/app/current/mynodeapp"
}
}
],
"containerDefinitions": [
{
"name": "mynodeapp",
"image": "node:8.11.3",
"memoryReservation": 128,
"essential": true,
"portMappings": [
{
"hostPort": 3000,
"containerPort": 3000
}
],
"command": [
"/bin/bash",
"/usr/src/app/run.sh"
],
"mountPoints": [
{
"sourceVolume": "mynodeapp",
"containerPath": "/usr/src/app"
}
]
}
]
}
Im trying to use the port 3000, but Im receiving timeout error. 我试图使用端口3000,但是我收到超时错误。
I don't know if I need fix something in the aws structure or in my 'dockerrun' file. 我不知道是否需要在aws结构或“ dockerrun”文件中修复某些内容。
The problems are: 问题是:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.