SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.
JavaScript a2aagentic-aiai-agentsdevtoolsmcp-clientn8n-alternativeno-codeopen-sourceorchestrationsmythosvisual-builder
ui & runtime listen on ipv4 0.0.0.0
Ahmed Essam6ff273274d7a
diff --git a/Dockerfile b/Dockerfileindex 287a819e..4a9fdc9b 100644--- a/Dockerfile+++ b/Dockerfile@@ -34,8 +34,10 @@ RUN pnpm installRUN pnpm run build# Patch the app to bind to 0.0.0.0 instead of localhost-WORKDIR /app/packages/app-RUN sed -i 's/listen(PORT, "localhost",/listen(PORT, process.env.HOST || "0.0.0.0",/g' dist/server/index.js+# WORKDIR /app/packages/app+# RUN sed -i 's/listen(PORT, "localhost",/listen(PORT, process.env.HOST || "0.0.0.0",/g' dist/server/index.js++# Generate Prisma client for Alpine Linux with correct binary targetWORKDIR /app/packages/middlewarediff --git a/docker-compose.yml b/docker-compose.ymlindex df0e7c7b..c15131a3 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -77,6 +77,8 @@ services:REDIS_HOST: ${REDIS_HOST:-redis}REDIS_PORT: ${REDIS_PORT:-6379}REDIS_PASSWORD: ${REDIS_PASSWORD:-}+ # Docker container flag to ensure proper host binding+ DOCKER_CONTAINER: "true"volumes:- smythos_data:/root/smythos-datadiff --git a/packages/app/src/backend/index.ts b/packages/app/src/backend/index.tsindex 0ffde65e..a1c332be 100644--- a/packages/app/src/backend/index.ts+++ b/packages/app/src/backend/index.ts@@ -100,7 +100,7 @@ app.use('/', pagesRouter);//error handling middlewaresapp.use(errorHandler);-let server = app.listen(PORT, 'localhost', () => {+let server = app.listen(PORT, '0.0.0.0', () => {console.log(`Listening on port ${PORT}`);});diff --git a/packages/runtime/src/core/management-router.ts b/packages/runtime/src/core/management-router.tsindex 273766b8..8690f436 100644--- a/packages/runtime/src/core/management-router.ts+++ b/packages/runtime/src/core/management-router.ts@@ -1,6 +1,6 @@import express from 'express';-import { app } from '../index.js';import { Server } from 'http';+import { app } from '../index.js';import config from './config';const ADMIN_PORT = config.env.ADMIN_PORT || 5054;@@ -9,15 +9,13 @@ const PORT = config.env.PORT || 5053;let server: Server;-const host = config.env.NODE_ENV === 'production' ? 'localhost' : '';-function enableAppPort() {if (server && server.listening) {console.info(`Server is already running at http://localhost:${PORT}`);return server;}- server = app.listen(PORT, host, () => {+ server = app.listen(PORT, '0.0.0.0', () => {console.info(`Server is running at http://localhost:${PORT}`);});@@ -68,7 +66,7 @@ managementApp.get('/stats', (req, res) => {// });export function startServers() {- managementApp.listen(ADMIN_PORT, host, () => {+ managementApp.listen(ADMIN_PORT, 'localhost', () => {console.info(`Management server listening on port ${ADMIN_PORT}`);});