diff --git a/ollama-openwebui/compose.yml b/ollama-openwebui/compose.yml new file mode 100644 index 0000000..b7b4a7c --- /dev/null +++ b/ollama-openwebui/compose.yml @@ -0,0 +1,23 @@ +name: ollama-openwebui +services: + ollama: + image: ollama/ollama:latest + container_name: ollama + restart: unless-stopped + ports: + - "11434:11434" + volumes: + - ./ollama:/root/.ollama + + openwebui: + image: ghcr.io/open-webui/open-webui:main + container_name: openwebui + restart: unless-stopped + depends_on: + - ollama + environment: + - OLLAMA_BASE_URL=http://ollama:11434 + ports: + - "3000:8080" + volumes: + - ./openwebui:/app/backend/data diff --git a/surfsense/.env b/surfsense/.env new file mode 100644 index 0000000..acf2f60 --- /dev/null +++ b/surfsense/.env @@ -0,0 +1,17 @@ +# Frontend Configuration +FRONTEND_PORT=3000 +NEXT_PUBLIC_API_URL=http://backend:8000 + +# Backend Configuration +BACKEND_PORT=8000 + +# Database Configuration +POSTGRES_USER=postgres +POSTGRES_PASSWORD=postgres +POSTGRES_DB=surfsense +POSTGRES_PORT=5432 + +# pgAdmin Configuration +PGADMIN_PORT=5050 +PGADMIN_DEFAULT_EMAIL=admin@surfsense.com +PGADMIN_DEFAULT_PASSWORD=surfsense \ No newline at end of file diff --git a/surfsense/compose.yml b/surfsense/compose.yml new file mode 100644 index 0000000..39f793b --- /dev/null +++ b/surfsense/compose.yml @@ -0,0 +1,72 @@ +# https://github.com/MODSetter/SurfSense + +# + +name: surfsense + +services: + frontend: + image: ghcr.io/modsetter/surfsense_ui:latest + ports: + - "${FRONTEND_PORT:-3000}:3000" + env_file: + - .env + depends_on: + - backend + environment: + - NEXT_PUBLIC_API_URL=${NEXT_PUBLIC_API_URL:-http://backend:8000} + networks: + - proxy + + backend: + image: ghcr.io/modsetter/surfsense_backend:latest + ports: + - "${BACKEND_PORT:-8000}:8000" + depends_on: + - db + env_file: + - .env + environment: + - DATABASE_URL=postgresql+asyncpg://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-postgres}@db:5432/${POSTGRES_DB:-surfsense} + - PYTHONPATH=/app + - UVICORN_LOOP=asyncio + - UNSTRUCTURED_HAS_PATCHED_LOOP=1 + - LANGCHAIN_TRACING_V2=false + - LANGSMITH_TRACING=false + + networks: + - proxy + db: + image: ankane/pgvector:latest + ports: + - "${POSTGRES_PORT:-5432}:5432" + volumes: + - postgres_data:/var/lib/postgresql/data + environment: + - POSTGRES_USER=${POSTGRES_USER:-postgres} + - POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-postgres} + - POSTGRES_DB=${POSTGRES_DB:-surfsense} + networks: + - proxy + + pgadmin: + image: dpage/pgadmin4 + ports: + - "${PGADMIN_PORT:-5050}:80" + environment: + - PGADMIN_DEFAULT_EMAIL=${PGADMIN_DEFAULT_EMAIL:-admin@surfsense.com} + - PGADMIN_DEFAULT_PASSWORD=${PGADMIN_DEFAULT_PASSWORD:-surfsense} + volumes: + - pgadmin_data:/var/lib/pgadmin + depends_on: + - db + networks: + - proxy + +networks: + proxy: + external: true + +volumes: + postgres_data: + pgadmin_data: