From d3b0b3a567ef6f7d64ed2e7000cbf424e2f5f473 Mon Sep 17 00:00:00 2001 From: Enderson Maia Date: Mon, 30 Sep 2024 14:17:41 -0300 Subject: [PATCH] fixup! WIP --- .../cli/src/node/docker-compose-espresso.yaml | 73 ++++++++++++++++--- 1 file changed, 64 insertions(+), 9 deletions(-) diff --git a/apps/cli/src/node/docker-compose-espresso.yaml b/apps/cli/src/node/docker-compose-espresso.yaml index 15b7b9a9..17d796b7 100644 --- a/apps/cli/src/node/docker-compose-espresso.yaml +++ b/apps/cli/src/node/docker-compose-espresso.yaml @@ -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"