Skip to content

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.

docker compose .env change

Ahmed Essama27b63c1ddcf
diff --git a/.env.example b/.env.example
index a8dba8ae..9cf05e7e 100644
--- a/.env.example
+++ b/.env.example
@@ -6,6 +6,7 @@ DATABASE_HOST=localhost
DATABASE_USER=smythos_user
DATABASE_PASSWORD=samplepassword111
DATABASE_NAME=smythos-local
+DATABASE_ROOT_PASSWORD=smythos_root_password # used for creating the database via docker-compose
# Expansion to build the database url (this entry is MANDATORY for Prisma to work)
DATABASE_URL="$DATABASE_PROVIDER://$DATABASE_USER:$DATABASE_PASSWORD@$DATABASE_HOST:3306/$DATABASE_NAME?allowPublicKeyRetrieval=true&useSSL=false"
diff --git a/.env.full.example b/.env.full.example
index 34230982..3cd27edb 100644
--- a/.env.full.example
+++ b/.env.full.example
@@ -103,6 +103,7 @@ DATABASE_HOST=
DATABASE_USER=
DATABASE_PASSWORD=
DATABASE_NAME=
+DATABASE_ROOT_PASSWORD=
# Database URL
# Format: mysql://<username>:<password>@<host>:<port>/<database>
# Example: mysql://user:password@mysql:3306/smythos_db
diff --git a/docker-compose.yml b/docker-compose.yml
index 1a57fc36..081ef363 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -55,7 +55,7 @@ services:
env_file:
- .env
environment:
- MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-$$(openssl rand -base64 32)}
+ MYSQL_ROOT_PASSWORD: ${DATABASE_ROOT_PASSWORD:-smythos_root_password}
MYSQL_DATABASE: ${DATABASE_NAME:-smythos_db}
MYSQL_USER: ${DATABASE_USER:-smythos_user}
MYSQL_PASSWORD: ${DATABASE_PASSWORD:-smythos_password}