内容来自官方文档,就是一个简单的整理:
FROM devopsfaith/krakend
COPY krakend.json /etc/krakend/krakend.json
krakend run -c krakend.json >/dev/null 2>&1
{
"version": 2,
"name": "Production Cluster rev-db6a182"
}
{
"endpoint": "/cookies",
"headers_to_pass": ["Cookie" ],
"@comment": "At this early stage of the implementation, we still need to send cookies to the backend.",
"backend": [{
"url_pattern": "/srv/legacy"
}]
}
https://www.krakend.io/docs/deploying/best-practices/
原文:https://www.cnblogs.com/rongfengliang/p/14191842.html