-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdev-docker.sh
More file actions
executable file
·53 lines (43 loc) · 1.76 KB
/
Copy pathdev-docker.sh
File metadata and controls
executable file
·53 lines (43 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
# Open-WebUI Development Environment Startup Script
# Frontend: http://localhost:5173
# Backend: http://localhost:8080
set -e
echo "🚀 Starting Open-WebUI Development Environment..."
echo ""
echo "📦 Frontend will run at: http://localhost:5173"
echo "🔧 Backend will run at: http://localhost:8080"
echo ""
# Stop and remove old containers (if exists)
echo "🧹 Cleaning up old containers..."
docker compose -f docker-compose.dev.yaml down 2>/dev/null || true
docker stop reasoning-lens 2>/dev/null || true
docker rm reasoning-lens 2>/dev/null || true
# Ensure volume exists
echo "💾 Checking data volume..."
docker volume inspect reasoning-lens-data >/dev/null 2>&1 || docker volume create reasoning-lens-data
# Start development environment
echo "🎬 Starting development containers..."
docker compose -f docker-compose.dev.yaml up -d
echo ""
echo "✅ Development environment started!"
echo ""
echo "📋 Useful commands:"
echo " View logs: docker compose -f docker-compose.dev.yaml logs -f"
echo " View backend logs: docker compose -f docker-compose.dev.yaml logs -f backend"
echo " View frontend logs: docker compose -f docker-compose.dev.yaml logs -f frontend"
echo " Stop services: docker compose -f docker-compose.dev.yaml down"
echo " Restart backend: docker compose -f docker-compose.dev.yaml restart backend"
echo " Restart frontend: docker compose -f docker-compose.dev.yaml restart frontend"
echo ""
echo "🌐 Access URLs:"
echo " Frontend: http://localhost:5173"
echo " Backend: http://localhost:8080"
echo ""
# Wait for services to start
echo "⏳ Waiting for services to start..."
sleep 3
# Automatically show logs
echo "📄 Showing service logs (press Ctrl+C to stop):"
echo ""
docker compose -f docker-compose.dev.yaml logs -f