Skip to content

Commit c1b7c39

Browse files
committed
Fix proxy service naming in Docker Compose configuration
Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com>
1 parent 19440bc commit c1b7c39

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/test-proxy.lock.yml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/workflow/compiler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1733,7 +1733,7 @@ func (c *Compiler) generateMCPSetup(yaml *strings.Builder, tools map[string]any,
17331733
c.generateInlineProxyConfig(yaml, toolName, toolConfig)
17341734
}
17351735
}
1736-
1736+
17371737
yaml.WriteString(" echo \"Proxy configuration files generated. Services will start automatically when MCP tools are used.\"\n")
17381738
}
17391739

pkg/workflow/docker_compose.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func generateDockerCompose(containerImage string, envVars map[string]any, toolNa
2323
image: ` + containerImage + `
2424
container_name: ` + toolName + `-mcp
2525
environment:
26-
- PROXY_HOST=squid-proxy-` + toolName + `
26+
- PROXY_HOST=squid-proxy
2727
- PROXY_PORT=3128`
2828

2929
// Add environment variables
@@ -37,7 +37,7 @@ func generateDockerCompose(containerImage string, envVars map[string]any, toolNa
3737

3838
compose += `
3939
depends_on:
40-
squid-proxy-` + toolName + `:
40+
squid-proxy:
4141
condition: service_healthy
4242
4343
volumes:

0 commit comments

Comments
 (0)