Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,26 @@ OLLAMA_API_BASE_URL=http://localhost:11434
# Generate a secure key with: openssl rand -hex 32
WEBUI_SECRET_KEY=change-me-to-a-secure-random-key

# Supreme Agent Configuration / إعدادات الوكيل الأعلى
SUPREME_MODEL=supreme-executor
OLLAMA_HOST=http://localhost:11434

# API Configuration / إعدادات API
API_HOST=0.0.0.0
API_PORT=5000
API_DEBUG=False
API_KEY=optional-your-key

# Web Interface / واجهة الويب
WEB_PORT=8080
WEB_THEME=auto
WEB_LANGUAGE=auto

# Hostinger Deployment / نشر Hostinger
DOMAIN=your-domain.com
SSH_USER=your-username
SSL_ENABLED=true

# Example Usage / مثال الاستخدام:
# 1. Copy this file: cp .env.example .env
# 2. Edit .env with your VPS details
Expand Down
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ package-lock.json
logs/
*.log

# Supreme Agent specific
supreme_agent.log
conversation_history.json
/tmp/supreme-*.log
/tmp/supreme-*.pid
supreme-agent-backup-*.tar.gz

# OS
Thumbs.db
Desktop.ini
Expand Down
57 changes: 57 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
FROM python:3.11-slim

# Metadata
LABEL maintainer="wasalstor-web"
LABEL description="Supreme Agent - Integrated AI Agent Platform"
LABEL version="1.0.0"

# Set working directory
WORKDIR /app

# Install system dependencies
RUN apt-get update && apt-get install -y \
curl \
bash \
&& rm -rf /var/lib/apt/lists/*

# Install Ollama
RUN curl -fsSL https://ollama.ai/install.sh | sh

# Copy project files
COPY . /app/

# Install Python dependencies
RUN pip install --no-cache-dir \
requests \
flask \
flask-cors

# Create directories
RUN mkdir -p /app/logs /app/data

# Make scripts executable
RUN chmod +x /app/scripts/*.sh /app/scripts/*.py /app/api/server.py

# Expose ports
# 5000 - API Server
# 8080 - Web Interface
# 11434 - Ollama
# 3000 - OpenWebUI (optional)
EXPOSE 5000 8080 11434 3000

# Environment variables
ENV OLLAMA_HOST=http://localhost:11434
ENV API_HOST=0.0.0.0
ENV API_PORT=5000
ENV WEB_PORT=8080

# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
CMD curl -f http://localhost:5000/api/health || exit 1

# Start script
COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh

ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["api"]
Loading
Loading