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
config chnages + docker ms
Ahmed Essamc332d920f26d
diff --git a/.env.compose.example b/.env.compose.exampleindex 677c0281..9e4b2422 100644--- a/.env.compose.example+++ b/.env.compose.example@@ -13,7 +13,8 @@ DATABASE_URL="$DATABASE_PROVIDER://$DATABASE_USER:$DATABASE_PASSWORD@$DATABASE_HAPP_DOMAIN="localhost"APP_URL="http://$APP_DOMAIN" # Expansion of the APP_DOMAIN variable-RUNTIME_URL="http://runtime.localhost"+RUNTIME_DOMAIN="runtime.localhost"+RUNTIME_URL="http://$RUNTIME_DOMAIN" # Expansion of the RUNTIME_DOMAIN variableDEFAULT_AGENT_DOMAIN="default.localhost"PROD_AGENT_DOMAIN="prod.localhost"@@ -31,4 +32,5 @@ REDIS_PASSWORD=redis_passwordEXPOSE_TRAEFIK_PORT="80"EXPOSE_HTTPS_TRAEFIK_PORT="443"-DATABASE_ROOT_PASSWORD=smythos_root_password # used for creating the database via docker-compose\ No newline at end of file+DATABASE_ROOT_PASSWORD=smythos_root_password # used for creating the database via docker-compose\ No newline at end of filediff --git a/DOCKER.md b/DOCKER.mdindex da0b0d6c..cc4a5bc3 100644--- a/DOCKER.md+++ b/DOCKER.md@@ -1,17 +1,17 @@# Docker Setup Guide for SmythOS UI-This guide explains how to run SmythOS UI using Docker, both with the standalone Dockerfile and the complete docker-compose setup.+This guide explains how to run SmythOS UI using Docker, both with the standalone Dockerfile and the complete docker compose setup.## Contents- [Docker Setup Guide for SmythOS UI](#docker-setup-guide-for-smythos-ui)- [Contents](#contents)- [Prerequisites](#prerequisites)- - [Quick Start with Docker Compose (Recommended)](#quick-start-with-docker-compose-recommended)+ - [Quick Start with Docker Compose (Recommended)](#quick-start-with-docker compose-recommended)- [1. Environment Setup](#1-environment-setup)- [2. Start All Services](#2-start-all-services)- [3. Access the Application](#3-access-the-application)- - [Docker Compose Architecture](#docker-compose-architecture)+ - [Docker Compose Architecture](#docker compose-architecture)- [Services Overview](#services-overview)- [Network Architecture](#network-architecture)- [Volume Management](#volume-management)@@ -38,14 +38,17 @@ This guide explains how to run SmythOS UI using Docker, both with the standalone- **Docker**: Version 20.10 or newer- **Docker Compose**: Version 2.0 or newer (included with Docker Desktop)+- **Root/Admin Access**: Required for Docker commands- **System Requirements**:- - 4GB RAM minimum (8GB recommended)+ - 8GB RAM minimum- 10GB free disk space- Ports 80, 443, 5050, 5053, 8080 available+> **⚠️ Important**: All Docker commands in this guide should be run as root user (Linux/macOS) or Administrator (Windows) to avoid permission issues.+## Quick Start with Docker Compose (Recommended)-The docker-compose setup provides a complete production-ready environment with all necessary services.+The docker compose setup provides a complete production-ready environment with all necessary services.### 1. Environment Setup@@ -62,12 +65,14 @@ cp .env.compose.example .envLaunch the complete SmythOS UI stack:+> **⚠️ Run as Root/Admin**: Ensure you're running as root (Linux/macOS) or Administrator (Windows)+```bash# Start all services in detached mode-docker-compose up -d+docker compose up -d# View logs (optional)-docker-compose logs -f+docker compose logs -f```### 3. Access the Application@@ -180,7 +185,7 @@ DEFAULT_AGENT_DOMAIN=dev-agents.yourdomain.com### SSL/TLS Configuration-The docker-compose setup includes automatic SSL certificate generation via Let's Encrypt:+The docker compose setup includes automatic SSL certificate generation via Let's Encrypt:1. **Configure your domains** in `.env`:```env@@ -198,7 +203,7 @@ The docker-compose setup includes automatic SSL certificate generation via Let's3. **Start with SSL enabled**:```bash- docker-compose up -d+ docker compose up -d```### Security Considerations@@ -234,20 +239,20 @@ echo 127.0.0.1 runtime.localhost prod.localhost default.localhost >> C:\Windows\**2. Services not starting:**```bash# Check service status-docker-compose ps+docker compose ps# View logs for specific service-docker-compose logs mysql-docker-compose logs smythos+docker compose logs mysql+docker compose logs smythos```**3. Database connection errors:**```bash# Verify MySQL is healthy-docker-compose exec mysql mysqladmin ping -u root -p+docker compose exec mysql mysqladmin ping -u root -p# Check database connectivity from app-docker-compose exec smythos sh -c "mysql -h mysql -u \$DATABASE_USER -p\$DATABASE_PASSWORD -e 'SELECT 1'"+docker compose exec smythos sh -c "mysql -h mysql -u \$DATABASE_USER -p\$DATABASE_PASSWORD -e 'SELECT 1'"```**4. Port conflicts:**@@ -268,13 +273,13 @@ EXPOSE_HTTPS_TRAEFIK_PORT=8443```bash# Down the services-docker-compose down+docker compose down# Pull latest images-docker-compose pull+docker compose pull# Rebuild and restart services-docker-compose up -d+docker compose up -d```@@ -283,7 +288,7 @@ docker-compose up -dFor issues with Docker deployment:1. Check the [Troubleshooting](#troubleshooting) section-2. Review container logs: `docker-compose logs -f`+2. Review container logs: `docker compose logs -f`3. Verify environment configuration in `.env`4. Ensure all prerequisites are metdiff --git a/docker-compose.yml b/docker-compose.ymlindex aca83787..f92254a0 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -131,8 +131,8 @@ services:labels:- traefik.enable=true- # APP_URL routing to port 5050 (UI Server)- - "traefik.http.routers.smythos-app.rule=Host(`${APP_URL:-http://localhost}`)"+ # APP_DOMAIN routing to port 5050 (UI Server)+ - "traefik.http.routers.smythos-app.rule=Host(`${APP_DOMAIN:-localhost}`)"- "traefik.http.routers.smythos-app.entrypoints=web,websecure"- "traefik.http.routers.smythos-app.service=smythos-app"- "traefik.http.routers.smythos-app.middlewares=smythos@docker"@@ -144,9 +144,8 @@ services:# Service definition- "traefik.http.services.smythos-app.loadbalancer.server.port=5050"- # RUNTIME_URL routing to port 5053 (Runtime Server)- # Only create routes if RUNTIME_URL is set- - "traefik.http.routers.smythos-runtime.rule=Host(`${RUNTIME_URL:-http://runtime.localhost}`)"+ # Only create routes if RUNTIME_DOMAIN is set+ - "traefik.http.routers.smythos-runtime.rule=Host(`${RUNTIME_DOMAIN:-runtime.localhost}`)"- "traefik.http.routers.smythos-runtime.entrypoints=web,websecure"- "traefik.http.routers.smythos-runtime.service=smythos-runtime"- "traefik.http.routers.smythos-runtime.tls=true"@@ -186,7 +185,7 @@ services:redis:condition: service_healthyhealthcheck:- test: ["CMD", "sh", "-c", "wget --no-verbose --tries=1 --spider http://localhost:5050/health && wget --no-verbose --tries=1 --spider http://localhost:5053/health"]+ test: ["CMD", "sh", "-c", "wget --no-verbose --tries=1 --spider http://127.0.0.1:5050/health && wget --no-verbose --tries=1 --spider http://127.0.0.1:5053/health"]interval: 30stimeout: 10sretries: 3diff --git a/packages/app/src/backend/middlewares/acl.mw.ts b/packages/app/src/backend/middlewares/acl.mw.tsindex f0c95cb3..dcf23365 100644--- a/packages/app/src/backend/middlewares/acl.mw.ts+++ b/packages/app/src/backend/middlewares/acl.mw.ts@@ -64,7 +64,9 @@ async function getTeamInfo(req: express.Request | any, isRetry: boolean = false)await userData.putUserSettings(token, userSettingKeys.USER_TEAM, '');return getTeamInfo(req, true);} else {- throw new Error('Failed to fetch team info:' + teamInfo.error?.response?.data);+ throw new Error(+ 'Failed to fetch team info:' + JSON.stringify(teamInfo.error?.response?.data),+ );}}return teamInfo;