fix(proxy): use internal container port instead of host port

The proxy was using instance.port which is a dynamically allocated
host port (e.g., 10001). But containers communicate on the Docker
network using their internal ports (8443 for code-server, 8888 for
jupyter). This caused connection failures when opening instances.

- Add default_port field to ToolType model (null for terminal-only tools)
- Create migration 0010 for default_port column
- Update seed data: code-server=8443, jupyter=8888, opencode=null
- Update proxy to use tool type's default_port instead of instance.port
- Update frontend ToolType interface to include default_port

Fixes: Opening instances now routes to correct internal container port
This commit is contained in:
Fusion
2026-05-20 13:55:42 +02:00
parent b4a7627718
commit 98795e31dd
6 changed files with 43 additions and 2 deletions
+1
View File
@@ -7,6 +7,7 @@ export interface ToolType {
description: string | null;
category: string;
interfaces: string[];
default_port: number | null;
compose_template: string;
required_variables: string[];
is_builtin: boolean;