#!/bin/bash # Arcane VM Setup Script # Führe dies auf der Arcane VM aus set -e echo "=== Arcane VM Setup ===" # Docker installieren echo "Installiere Docker..." curl -fsSL https://get.docker.com | sh # Arcane User erstellen (falls nicht vorhanden) echo "Erstelle Arcane User..." id arcane &>/dev/null || useradd -m -s /bin/bash arcane usermod -aG docker arcane # Verzeichnisse erstellen mkdir -p /opt/docker/projects # Docker Compose Datei erstellen cat > /opt/docker-compose.yml << 'EOF' version: '3.8' services: arcane: image: ghcr.io/getarcaneapp/manager:latest container_name: arcane ports: - '3552:3552' volumes: - /var/run/docker.sock:/var/run/docker.sock - arcane-data:/app/data - /opt/docker/projects:/app/data/projects environment: - PROJECTS_DIRECTORY=/app/data/projects - APP_URL=http://192.168.178.162:3552 - PUID=1000 - PGID=1000 - ENCRYPTION_KEY=$(openssl rand -hex 32) - JWT_SECRET=$(openssl rand -hex 32) restart: unless-stopped volumes: arcane-data: EOF # Arcane starten echo "Starte Arcane..." cd /opt docker compose up -d echo "=== Arcane VM Setup abgeschlossen ===" echo "Arcane ist erreichbar unter: http://192.168.178.162:3552" echo "Projects Directory: /opt/docker/projects"