traefik: http://localhost:5002 (development domain to services)
| http://localhost:5004 (development dashboard)
| http://api.somedomain.com (production domain to services)
| http://api.somedomain.com:8080 (production domain to dashboard)
___________/
/
|-- Service-1
| o) http://localhost:5002/account/1 (development)
| o) http://localhost:5002/account (development)
| o) http://api.somedomain.com/account/1 (production)
| o) http://api.somedomain.com/account (production)
|
|-- Service-2
| o) http://localhost:5002/account/1 (development)
| o) http://localhost:5002/account (development)
| o) http://api.somedomain.com/account/1 (production)
| o) http://api.somedomain.com/account (production)
因此,鉴于上述途径,我不确定如何在docker-compose.yml
和docker-compose.override.yml
文件中定义标签。
此外,如果我尝试转到未列出的任何路由..,例如http://pewpew.localhost:5002,则应拒绝该请求,因为它不会使上面的示例路由成为主机。 (例如,我不希望任何解析为目标计算机的内容被接受)。