Getting started
Install
Run sochub on your own machine or server with Docker Compose.
sochub runs as a set of containers: the web app, the API, a worker, PostgreSQL, Redis and, by default, a local LLM (Ollama) for the AI features. Everything runs on your infrastructure.
Requirements
- Docker with Docker Compose
- About 3 GB of free disk and 4 GB of free RAM for the local model
Steps
git clone https://github.com/sochub/soc-hub.git && cd soc-hub
cp .env.example .env
cp backend/.env.example backend/.env
# generate a strong SECRET_KEY and put it in backend/.env
python -c "import secrets; print(secrets.token_urlsafe(48))"
docker compose up -d --build
docker compose exec backend alembic upgrade head
docker compose exec backend python -m app.scripts.create_super_admin \
--email admin@example.com --name "Super Admin"
Open http://localhost and sign in. The super admin creates the organization and invites its first admin from
Settings.
The local model (llama3.2:3b, about 2 GB) downloads on first start. Until it finishes, AI features say they are
unavailable; everything else works. You can switch to another AI provider later (see AI).
Going to production
- Set
ENVIRONMENT=productionand strong values forSECRET_KEY,POSTGRES_PASSWORDandREDIS_PASSWORD. In production the backend refuses to start with the development defaults. - Only the web container is published; the API, database, Redis and model listen on loopback.
- A Helm chart is available for Kubernetes.
The full reference of settings is in the configuration guide.
Found a mistake? Edit this page or open an issue on GitHub.