Skip to content

Instantly share code, notes, and snippets.

@skalahonza
Created April 12, 2024 07:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skalahonza/33a29b1b8f4841ce0c23d7314bbda9e3 to your computer and use it in GitHub Desktop.
Save skalahonza/33a29b1b8f4841ce0c23d7314bbda9e3 to your computer and use it in GitHub Desktop.
http:
routers:
api-router:
rule: "PathPrefix(`/api`)"
service: "backend-service"
entryPoints:
- "web"
front-router:
rule: "PathPrefix(`/`)"
service: "frontend-service"
entryPoints:
- "web"
services:
backend-service:
loadBalancer:
servers:
- url: "http://backend:5678"
frontend-service:
loadBalancer:
servers:
- url: "http://frontend:5678"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment