我想在弹性beantalk中部署带有多容器docker的应用程序。问题是EBS仪表板说服务已成功部署,但我无法使用仪表板中显示的URL从浏览器访问应用程序。另外,我无法访问部署在不同端口中的不同服务。
以下是我的Dockerrun.aws.json,这是我压缩并上传到EBS中的唯一文件,选择该平台作为多容器Docker-
{
"AWSEBDockerrunVersion": 2,
"containerDefinitions": [
{
"name": "eureka-server",
"image": "name/tag-1",
"essential": true,
"memory": 128,
"portMappings": [
{
"hostPort": 8761,
"containerPort": 8761
}
]
},
{
"name": "currency-exchange",
"image": "name/tag-2",
"essential": true,
"memory": 128,
"portMappings": [
{
"hostPort": 8000,
"containerPort": 8000
}
],
"links": [
"eureka-server"
]
},
{
"name": "currency-conversion",
"image": "name/tag-3",
"essential": true,
"memory": 128,
"portMappings": [
{
"hostPort": 8100,
"containerPort": 8100
}
],
"links": [
"eureka-server"
]
}
]
}