我将Elastic Beanstalk与Docker Multi-Container结合使用。
我的配置(在Elastic Beanstalk中)是:
文件“ 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"
}
]
}
]
}
我正在尝试使用端口3000,但是我收到超时错误。
我不知道是否需要在aws结构或“ dockerrun”文件中修复某些问题。
答案 0 :(得分:0)
问题是: