Skip to content

Commit

Permalink
fixup! WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
endersonmaia committed Sep 30, 2024
1 parent 5c7c6d0 commit d3b0b3a
Showing 1 changed file with 64 additions and 9 deletions.
73 changes: 64 additions & 9 deletions apps/cli/src/node/docker-compose-espresso.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,76 @@ services:

traefik-config-generator:
environment:
TRAEFIK_CONFIG_ESPRESSO: |
TRAEFIK_CONFIG_ESPRESSO_DEV: |
http:
routers:
espresso:
rule: "PathPrefix(`/espresso`)"
espresso-dev:
rule: "PathPrefix(`/espresso/dev`)"
middlewares:
- "remove-espresso-prefix"
service: espresso
- "remove-espresso-dev-prefix"
service: espresso-dev
middlewares:
remove-espresso-prefix:
remove-espresso-dev-prefix:
replacePathRegex:
regex: "^/espresso/(.*)"
replacement: "/$1"
regex: "^/espresso/dev/(.*)"
replacement: "/v0/$1"
services:
espresso:
espresso-dev:
loadBalancer:
servers:
- url: "http://espresso:20000"
TRAEFIK_CONFIG_ESPRESSO_SEQUENCER: |
http:
routers:
espresso-sequencer:
rule: "PathPrefix(`/espresso/sequencer`)"
middlewares:
- "remove-espresso-sequencer-prefix"
service: espresso-sequencer
middlewares:
remove-espresso-sequencer-prefix:
replacePathRegex:
regex: "^/espresso/sequencer/(.*)"
replacement: "/v0/$1"
services:
espresso-sequencer:
loadBalancer:
servers:
- url: "http://espresso:8770"
TRAEFIK_CONFIG_ESPRESSO_BUILDER: |
http:
routers:
espresso-builder:
rule: "PathPrefix(`/espresso/builder`)"
middlewares:
- "remove-espresso-builder-prefix"
service: espresso-builder
middlewares:
remove-espresso-builder-prefix:
replacePathRegex:
regex: "^/espresso/builder/(.*)"
replacement: "/v0/$1"
services:
espresso-builder:
loadBalancer:
servers:
- url: "http://espresso:8771"
TRAEFIK_CONFIG_ESPRESSO_PROVER: |
http:
routers:
espresso-prover:
rule: "PathPrefix(`/espresso/prover`)"
middlewares:
- "remove-espresso-prover-prefix"
service: espresso-prover
middlewares:
remove-espresso-prover-prefix:
replacePathRegex:
regex: "^/espresso/prover/(.*)"
replacement: "/v0/$1"
services:
espresso-prover:
loadBalancer:
servers:
- url: "http://espresso:8772"

0 comments on commit d3b0b3a

Please sign in to comment.