Skip to content

Adapt docker-compose-dev.yml to use proxy - #5

Closed
codecsrayo wants to merge 6 commits into
feature/integrations-panel-fix-17593507967815292912from
chore/adapt-docker-compose-dev-to-proxy-4243779813427031312
Closed

codecsrayo wants to merge 6 commits into
feature/integrations-panel-fix-17593507967815292912from
chore/adapt-docker-compose-dev-to-proxy-4243779813427031312

Conversation

@codecsrayo

Copy link
Copy Markdown
Owner

Adapted the development Docker Compose configuration to support proxy-based access, matching the requirements from the provided override file. This includes adding the live service, configuring build arguments for frontends to allow correct routing, and adjusting the network topology to work with Traefik.


PR created automatically by Jules for task 4243779813427031312 started by @codecsrayo

- Added `proxy` service with Traefik labels from `docker-compose.override.yml`
- Added `live` service and its environment configuration
- Removed direct port mappings for `api`, `plane-db`, `plane-redis`, and `plane-minio`
- Updated frontend services (`web`, `admin`, `space`) with VITE build arguments
- Configured services to use `dev_env` and `traefik-public` networks
- Added `proyectos-bi-quare` as an external network

Co-authored-by: codecsrayo <[email protected]>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

google-labs-jules Bot and others added 5 commits April 7, 2026 21:14
- Added `proxy` service with Traefik labels from `docker-compose.override.yml`
- Added `live` service and its environment configuration
- Removed direct port mappings for internal services
- Updated frontend services (`web`, `admin`, `space`) with hardcoded VITE build arguments as requested
- Configured services to use `dev_env` and `traefik-public` networks
- Added `proyectos-bi-quare` as an external network

Co-authored-by: codecsrayo <[email protected]>
- Adapted `docker-compose-dev.yml` to use proxy with direct build args
- Added `live` service and networking configuration
- Removed direct port mappings for backend services
- Fixed `pnpm`/`turbo` build issues in all frontend `Dockerfile.dev` files
- Mapped `VITE_` build arguments to environment variables in Dockerfiles to ensure correct proxy routing

Co-authored-by: codecsrayo <[email protected]>
- Adapted `docker-compose-dev.yml` to use proxy with direct build args and consistent container names from `docker-compose.override.yml`
- Added `live` service and networking configuration
- Removed direct port mappings for internal services
- Fixed `pnpm`/`turbo` build issues in all frontend `Dockerfile.dev` files
- Mapped `VITE_` build arguments to environment variables in Dockerfiles to ensure correct proxy routing
- Renamed internal network to `default` and connected it to `traefik-public` as an external network
- Added `ports: !reset []` to the proxy to avoid port conflicts during overrides

Co-authored-by: codecsrayo <[email protected]>
- Adapted `docker-compose-dev.yml` to use proxy with direct build args and consistent container names from `docker-compose.override.yml`
- Added `live` service and networking configuration
- Removed direct port mappings for internal services
- Fixed `pnpm`/`turbo` build issues in all frontend `Dockerfile.dev` files
- Mapped `VITE_` build arguments to environment variables in Dockerfiles to ensure correct proxy routing
- Renamed internal network to `default` and connected it to `traefik-public` as an external network
- Added `ports: !reset []` to the proxy to avoid port conflicts during overrides
- Corrected internal service ports in Caddyfile for `admin` (3001), `space` (3002), and `live` (3003)
- Added network aliases in `docker-compose-dev.yml` to ensure service discovery within the `default` network

Co-authored-by: codecsrayo <[email protected]>
@codecsrayo
codecsrayo deleted the branch feature/integrations-panel-fix-17593507967815292912 April 8, 2026 00:03
@codecsrayo codecsrayo closed this Apr 8, 2026
@codecsrayo
codecsrayo deleted the chore/adapt-docker-compose-dev-to-proxy-4243779813427031312 branch April 8, 2026 03:09
codecsrayo pushed a commit that referenced this pull request Apr 17, 2026
…rUrls

Fix #4 — Triplicación de páginas de callback (~300 líneas duplicadas)
- Crea apps/web/core/components/integration/oauth-callback-page.tsx
  · Componente stateless OAuthCallbackPage con props:
    status (processing | success | error), errorMessage,
    processingText, successText
  · Exporta tipo TOAuthCallbackStatus para reutilización segura
- Refactoriza github/callback/page.tsx, gitlab/callback/page.tsx y
  slack/callback/page.tsx para delegar toda la UI al componente compartido
  · Cada página conserva únicamente la lógica de negocio específica del
    proveedor (parseo de query-string, llamada al servicio, postMessage)
  · Eliminadas ~70 líneas de JSX idéntico por archivo (210 líneas totales)

Fix #5 — providerUrls reconstruido en cada render
- use-integration-popup.tsx: buildProviderUrl envuelto en useMemo
  · Dependencias explícitas: github_app_name, gitlab_client_id,
    gitlab_host, slack_client_id, workspaceSlug, projectId, stateParams
  · El nonce NO figura como dependencia — se pasa como argumento en
    call-time dentro de openPopup para que cada startAuth genere un
    nonce fresco sin disparar un ciclo de re-render
codecsrayo pushed a commit that referenced this pull request Apr 18, 2026
…Error, URL encoding, useMemo→useCallback

#3 — setInterval sin cleanup:
- Extraído interval ID a intervalRef (useRef) en lugar de variable local
- Añadido useEffect de unmount que llama clearInterval(intervalRef.current)
- Patrón idéntico al ya usado en personal-connect-card.tsx:58,76-81

#4 — popup.current.closed sin try/catch:
- Envuelto el acceso a popup.current.closed en try/catch
- SecurityError en popup cross-origin ahora se trata como 'closed'
- El guard === undefined previo no cubría el throw

#5 — URLs construidas sin encodeURIComponent:
- workspaceSlug, projectId y stateParams ahora se encodean antes
  de inyectarse en el parámetro state=
- Slug con &, #, = o espacios ya no corrompe el parseo del callback
- Nonce (UUID, url-safe) también encodificado defensivamente
- slackChannelState construido con variables intermedias encodificadas

#6 — useMemo retornando función:
- Cambiado useMemo(() => (nonce) => ...) → useCallback((nonce) => ...)
- Eliminado el eslint-disable-next-line innecesario (deps estaban completas)
- Import: reemplazado useMemo por useCallback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant