在ECS上部署openmaptiles-server之后,WMS端点返回HTTP 404,并显示消息“无法获取/ services / wms”。当与docker run -p8080:80 openmaptiles-server-derivative
在本地运行时,同一图像有效。
例如,curl 'https://ecs-service-address/services/wms?service=wms&version=1.1.1&request=GetCapabilities'
让我
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /services/wms</pre>
</body>
</html>
但是curl 'http://my-docker-host:8080/services/wms?service=wms&version=1.1.1&request=GetCapabilities'
为我提供了预期的GetCapabilities文档。
派生映像具有数据,样式和配置文件,以下是Dockerfile。配置文件已启用WMS。
关于如何在ECS上进行调试的任何想法?我只能访问日志,而不能访问容器文件系统或控制台。日志在本地或ECS上均未提及有关wms的任何内容。
Dockerfile:
FROM klokantech/openmaptiles-server
COPY osm-2017-07-03-v3.6.1-europe_finland.mbtiles /data/
COPY styles/maptilerCloudStyle.json /data/styles/
COPY config.json /data/
config.json:
{
"styles": {
"standard": [
"dark-matter",
"klokantech-basic",
"osm-bright",
"positron"
],
"custom": [
"maptilerCloudStyle.json"
],
"lang": "",
"langLatin": true,
"langAlts": true
},
"settings": {
"serve": {
"vector": true,
"raster": true,
"services": true,
"static": true
},
"raster": {
"format": "PNG_256",
"hidpi": 2,
"maxsize": 2048
},
"server": {
"title": "",
"redirect": "",
"domains": []
},
"memcache": {
"size": 19,
"servers": [
"localhost:11211"
]
}
}
}