Zum Hauptinhalt springen
☁️ Option 0: Cloud (Keine Einrichtung erforderlich) Möchten Sie nicht selbst hosten? Probieren Sie FIM One sofort unter cloud.fim.ai aus – kein Docker, keine API-Schlüssel, keine Konfiguration. Melden Sie sich an und schon können Sie loslegen. Früher Zugriff.
No local Python or Node.js required — everything is built inside the container.
Open http://localhost:3000 — on first launch you’ll be guided through creating an admin account. That’s it. After the initial build, subsequent starts only need:
Data is persisted in the bind-mounted ./data and ./uploads directories and in the postgres_data / redis_data named volumes, and survives container restarts. Note: Docker mode does not support hot reload. Code changes require rebuilding the image (docker compose up --build -d). For active development with live reload, use Option B below.

Option B: Local Development

Prerequisites: Python 3.11+, uv, Node.js 18+, pnpm.

Konfiguration

FIM One funktioniert mit jedem OpenAI-kompatiblen LLM-Anbieter — OpenAI, DeepSeek, Anthropic, Qwen, Ollama, vLLM und mehr. Jina AI ermöglicht Websuche/Abruf, Einbettung und die vollständige RAG-Pipeline (kostenlose Stufe verfügbar). Minimale .env:
Eine vollständige Liste aller Konfigurationsoptionen finden Sie in der Referenz Umgebungsvariablen.

Produktionsbereitstellung

docker compose up -d brings up everything you need — no manual service configuration required:

ARM64 Hosts

The images build for both linux/amd64 and linux/arm64 (e.g. Kunpeng servers) from the same Dockerfile and Dockerfile.sandbox. Every base image is multi-arch and every Python dependency in uv.lock ships a Linux ARM64 wheel, so nothing is compiled from source. On an ARM64 host, docker compose up --build -d or ./deploy.sh builds ARM64 images with no extra steps. To build on one machine and run on another, for example ARM64 images for an offline server, use scripts/build-images.sh (requires docker buildx):
A non-native architecture is built under QEMU emulation and takes several times longer. Docker Desktop includes QEMU; on Linux, register it once with docker run --privileged --rm tonistiigi/binfmt --install arm64 (or amd64). The container is privileged because it registers the emulator in the host kernel. On the target host, load the archive and give the images the names Docker Compose uses, then start without rebuilding. docker compose config --images prints those names; the app image is <project>-fim-one, where <project> is the Compose project name (the checkout directory name, lowercased and without characters such as dots).
On a host without internet access:
  • postgres:16-alpine and redis:7-alpine are not in the archive. Pull them for the target architecture on a connected machine and transfer them with docker save / docker load.
  • With CODE_EXEC_BACKEND=docker, JavaScript execution uses node:20-slim, which is not in the archive either. Transfer it the same way, or the first JavaScript run fails on the image pull.
  • Do not use ./deploy.sh there: it always rebuilds (up -d --build), which needs the network. Use docker compose up -d --no-build.

Scaling with Workers

By default, the API runs with a single worker process. To handle more concurrent users, increase workers via .env:
Multi-worker requirements:
  • PostgreSQL — SQLite is single-writer and does not support concurrent writes. Docker Compose already runs PostgreSQL and points DATABASE_URL at it; on bare metal, set DATABASE_URL to a PostgreSQL connection string.
  • Redis — already included in Docker Compose (auto-configured). Handles cross-worker interrupt/inject relay.
With WORKERS=1 (default) outside Docker Compose, no Redis or PostgreSQL is needed — SQLite works fine.

Nginx Reverse Proxy

For HTTPS and custom domain, put an Nginx reverse proxy in front:
The API runs internally on port 8000 — Next.js proxies /api/* requests automatically. Only port 3000 needs to be exposed. Behind a reverse proxy, set FORWARDED_ALLOW_IPS to the proxy’s address or network so FIM One sees the real client address. Without it every request appears to come from the proxy, which is what IP rules (admin Security → IP Rules) and login history would then record.

Code Execution Sandbox

With the bundled docker-compose.yml, code execution runs in throw-away sandbox containers without a network (CODE_EXEC_BACKEND=docker, the compose default). The application container does not get the Docker socket. A small docker-socket-proxy service holds it and only starts sandbox containers:
Do not add the socket to the fim-one service: access to it is equivalent to root on the host. The application runs as an unprivileged user (fim, uid 10001); on first start the entrypoint hands ./data and ./uploads over to that user. See Security → Code execution and the Docker socket, which also has the upgrade steps for an existing deployment.

Cloudflare Tunnel

Verwenden Sie für ein Setup ohne offene Ports Cloudflare Tunnel anstelle von Nginx. Der gesamte Datenverkehr fließt über Cloudflares Edge — es ist nicht erforderlich, die Ports 80/443 freizugeben, SSL-Zertifikate zu verwalten oder Firewall-Regeln zu konfigurieren.
Benutzer in Festlandchina: Cloudflare Free/Pro/Business-Pläne haben keine PoPs (Points-of-Presence) in Festlandchina. Der Datenverkehr aus Festlandchina wird zu Overseas-Edges weitergeleitet (typischerweise US West), was häufig zu 502-Fehlern und hoher Latenz führt. Verwenden Sie nicht Cloudflare Tunnel, wenn Ihre primären Benutzer in Festlandchina sind. Cloudflare Enterprise mit China Network (JD Cloud-Partnerschaft) ist erforderlich für zuverlässigen Zugriff auf Festlandchina.
Einrichtung:
1

Tunnel erstellen

Gehen Sie zu Cloudflare Zero Trust → Networks → Tunnels → Create a tunnel. Wählen Sie Cloudflared als Connector-Typ.
2

Öffentlichen Hostnamen konfigurieren

Fügen Sie in der Tunnel-Konfiguration einen öffentlichen Hostnamen hinzu:Lassen Sie alle anderen Einstellungen (HTTP Host Header, Chunked Encoding, Timeouts, Access) auf ihren Standardwerten.
Die URL verwendet den Docker-Servicenamen fim-one, nicht localhost, da cloudflared als separater Container im selben Docker-Netzwerk ausgeführt wird.
3

Tunnel-Token kopieren

Suchen Sie auf der Seite Configure des Tunnels den Installationsbefehl — er enthält einen Token, der mit eyJ... beginnt. Kopieren Sie ihn.
4

Token zu .env hinzufügen

5

Mit dem Tunnel-Overlay bereitstellen

Das docker-compose.tunnel.yml-Overlay fügt einen cloudflared-Sidecar-Container hinzu. Die Basis-docker-compose.yml bleibt unverändert — Community-Benutzer ohne Cloudflare können weiterhin docker compose up -d wie zuvor verwenden.
6

Alten DNS-Eintrag entfernen

Wenn Ihre Domain zuvor einen A-Eintrag hatte, der auf die IP-Adresse Ihres Servers verweist, löschen Sie ihn in Cloudflare DNS. Der Tunnel erstellt automatisch einen CNAME-Eintrag, der auf seinen Edge-Endpunkt verweist.
7

Server-Ports schließen

Entfernen Sie (oder kommentieren Sie aus) den Abschnitt ports aus docker-compose.yml auf Ihrem Server. Der Datenverkehr fließt nun ausschließlich durch den Tunnel — keine eingehenden Ports erforderlich.
Cloudflare Tunnel ist kostenlos bei allen Plänen, einschließlich Free. Es gibt keine Bandbreiten- oder Datenverkehrsgrenzen.

Script-Bereitstellung (Bare Metal)

Für Bare-Metal-Server oder benutzerdefinierte Prozessmanager verwenden Sie ./start.sh direkt:
In diesem Modus ist Redis nicht automatisch enthalten. Das System läuft standardmäßig im Single-Worker-, In-Process-Modus — geeignet für Bereitstellungen mit geringem Datenverkehr. Um Multi-Worker mit Redis lokal zu aktivieren: