mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2025-12-11 20:15:30 +01:00
- Introduce an Axum-based HTTP server with an embedded daemon and a JSON-RPC proxy to the daemon via a Unix socket - Bundle web UI assets into the server with an assets feature and a build.rs that builds the frontend using pnpm - Add multi-stage Dockerfile, docker-compose.yml, and a Distroless runtime image - Provide TrueNAS deployment support with a build script and setup guide - Add a new web UI (apps/web) with a Vite-based dev/build flow and a web platform shim for the frontend - Implement server logic (apps/server/src/main.rs): health, auth, /rpc proxy and data-dir/socket-path wiring - Include server-specific Cargo.toml and a comprehensive server README - Add architecture and memory-focused docs to guide usage and design - Minor core tweak: simplify location/resource event emission in core/src/location/manager.rs to align with new flow - Tauri app: adjust menus to add an Edit submenu and remove unused items
47 lines
1.3 KiB
Bash
Executable File
47 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
# Quick start script for running Spacedrive Server in Docker
|
|
# Usage: ./docker-run.sh
|
|
|
|
set -e
|
|
|
|
echo "🚀 Starting Spacedrive Server with Docker Compose..."
|
|
|
|
# Check if .env exists
|
|
if [ ! -f .env ]; then
|
|
echo "⚠️ No .env file found. Creating from template..."
|
|
cp .env.example .env
|
|
echo ""
|
|
echo "📝 IMPORTANT: Edit .env and set your SD_AUTH credentials!"
|
|
echo " Default is 'admin:changeme' - please change this."
|
|
echo ""
|
|
read -p "Press enter to continue or Ctrl+C to abort..."
|
|
fi
|
|
|
|
# Check if docker-compose is available
|
|
if ! command -v docker-compose &> /dev/null; then
|
|
if ! command -v docker &> /dev/null; then
|
|
echo "❌ Docker not found. Please install Docker first."
|
|
exit 1
|
|
fi
|
|
# Try docker compose (newer syntax)
|
|
COMPOSE_CMD="docker compose"
|
|
else
|
|
COMPOSE_CMD="docker-compose"
|
|
fi
|
|
|
|
echo "🏗️ Building and starting container..."
|
|
$COMPOSE_CMD up -d --build
|
|
|
|
echo ""
|
|
echo "✅ Spacedrive Server is running!"
|
|
echo ""
|
|
echo "📍 Access your server at: http://localhost:8080"
|
|
echo "🔐 Login credentials: Check your .env file (SD_AUTH)"
|
|
echo ""
|
|
echo "Useful commands:"
|
|
echo " - View logs: $COMPOSE_CMD logs -f spacedrive"
|
|
echo " - Stop server: $COMPOSE_CMD down"
|
|
echo " - Restart: $COMPOSE_CMD restart"
|
|
echo " - Shell access: $COMPOSE_CMD exec spacedrive sh"
|
|
echo ""
|