Skip to content

Commit da1d220

Browse files
fix(install): update installation script and completion screen for microservices support
- Modified the installation script to utilize Docker Compose profiles for starting Thoth microservices, enhancing service management. - Updated API and MCP server URLs in both the installation script and completion screen to reflect the new port configuration. - Improved user feedback during service startup to clarify the running status of Thoth microservices.
1 parent fa31755 commit da1d220

File tree

2 files changed

+28
-20
lines changed

2 files changed

+28
-20
lines changed

install.sh

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -145,25 +145,25 @@ case "$1" in
145145
sleep 3
146146
fi
147147
148-
# Start Thoth services (pull first, build if pull fails)
148+
# Start Thoth microservices (pull first, build if pull fails)
149149
echo " Starting Thoth containers..."
150-
if ! docker compose pull 2>/dev/null; then
150+
if ! docker compose --profile microservices pull 2>/dev/null; then
151151
echo " Pre-built images not available, building locally..."
152-
docker compose up -d --build
152+
docker compose --profile microservices up -d --build
153153
else
154-
docker compose up -d
154+
docker compose --profile microservices up -d
155155
fi
156156
157157
echo "✅ Thoth is running!"
158158
[ "$LETTA_MODE" = "cloud" ] && echo " Letta: Cloud" || echo " Letta: localhost:8283"
159-
echo " API: http://localhost:8000"
160-
echo " MCP: http://localhost:8001"
159+
echo " API: http://localhost:8080"
160+
echo " MCP: http://localhost:8082"
161161
;;
162162
163163
stop)
164164
echo "🛑 Stopping Thoth services..."
165165
cd "$PROJECT_ROOT"
166-
docker compose stop
166+
docker compose --profile microservices stop
167167
168168
echo "✅ Thoth stopped (RAM freed)"
169169
echo ""
@@ -180,22 +180,22 @@ case "$1" in
180180
status)
181181
cd "$PROJECT_ROOT"
182182
echo "📊 Thoth Service Status:"
183-
docker compose ps
183+
docker compose --profile microservices ps
184184
echo ""
185185
echo "Letta Status:"
186186
docker compose -f docker-compose.letta.yml ps 2>/dev/null || echo " (Not using self-hosted Letta)"
187187
;;
188188
189189
logs)
190190
cd "$PROJECT_ROOT"
191-
docker compose logs -f "${@:2}"
191+
docker compose --profile microservices logs -f "${@:2}"
192192
;;
193193
194194
update)
195195
echo "⬆️ Updating Thoth..."
196196
cd "$PROJECT_ROOT"
197197
git pull origin main
198-
docker compose pull
198+
docker compose --profile microservices pull
199199
"$0" restart
200200
echo "✅ Updated to latest version"
201201
;;
@@ -497,18 +497,18 @@ if command_exists docker && docker info >/dev/null 2>&1; then
497497
docker compose -f docker-compose.letta.yml up -d 2>/dev/null || true
498498
sleep 3
499499

500-
# Start Thoth (pull or build)
500+
# Start Thoth microservices (pull or build)
501501
echo -e " Starting Thoth..."
502-
if ! docker compose pull 2>/dev/null; then
502+
if ! docker compose --profile microservices pull 2>/dev/null; then
503503
echo -e " ${YELLOW}Pre-built images not available, building locally...${NC}"
504-
docker compose up -d --build
504+
docker compose --profile microservices up -d --build
505505
else
506-
docker compose up -d
506+
docker compose --profile microservices up -d
507507
fi
508508

509509
echo -e "\n${GREEN}✓ Thoth is running!${NC}"
510-
echo -e " API: http://localhost:8000"
511-
echo -e " MCP: http://localhost:8001"
510+
echo -e " API: http://localhost:8080"
511+
echo -e " MCP: http://localhost:8082"
512512
echo -e " Letta: http://localhost:8283\n"
513513
else
514514
echo -e "\nStart services any time with:"

src/thoth/cli/setup/screens/completion.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -425,10 +425,18 @@ async def start_services(self) -> None:
425425

426426
time.sleep(3)
427427

428-
# Start Thoth services
428+
# Start Thoth microservices
429429
self.show_info('Starting Thoth services...')
430430
result = subprocess.run( # nosec B603
431-
['docker', 'compose', 'up', '-d', '--build'],
431+
[
432+
'docker',
433+
'compose',
434+
'--profile',
435+
'microservices',
436+
'up',
437+
'-d',
438+
'--build',
439+
],
432440
cwd=project_root,
433441
capture_output=True,
434442
text=True,
@@ -440,8 +448,8 @@ async def start_services(self) -> None:
440448
self.show_success(
441449
'\n[bold green]Thoth is now running![/bold green]\n\n'
442450
'[bold]Access points:[/bold]\n'
443-
' API Server: [cyan]http://localhost:8000[/cyan]\n'
444-
' MCP Server: [cyan]http://localhost:8001[/cyan]\n'
451+
' API Server: [cyan]http://localhost:8080[/cyan]\n'
452+
' MCP Server: [cyan]http://localhost:8082[/cyan]\n'
445453
f' Letta: [cyan]{"Cloud" if letta_mode == "cloud" else "http://localhost:8283"}[/cyan]\n\n'
446454
'[bold]Quick commands:[/bold]\n'
447455
' [cyan]thoth status[/cyan] - Check running services\n'

0 commit comments

Comments
 (0)