On windows how can I run a fabric server with docker compose?
- User
On windows how can I run a fabric server with docker compose?
- Assistant
To run a Fabric server on Windows using Docker Compose, follow these steps:
1. Prerequisites
-
Install Docker Desktop for Windows:
Ensure Docker Desktop is installed and running on your Windows machine. You can download it from Docker's official website. -
Enable WSL 2 (Windows Subsystem for Linux):
Docker Desktop on Windows requires WSL 2. Follow the WSL 2 installation guide if needed.
2. Prepare the
docker-compose.ymlFileThe repository contains a
docker-compose.ymlfile located at./repos/fabric/docker-compose.yml. This file defines the Fabric server configuration.The relevant content of the
docker-compose.ymlfile is:[Redactedversion: '3.8' services: fabric-api: build: . ports: - "8080:8080" volumes: - ./ENV:/root/.config/fabric/.env:ro environment: - GIN_MODE=release
3. Steps to Run Fabric Server
Step 1: Clone the Repository
Clone the Fabric repository to your local machine if you haven't done so already:
bashgit clone https://github.com/danielmiessler/fabric.git cd fabricStep 2: Configure the
.envFileThe
docker-compose.ymlfile mounts an.envfile for configuration at./ENV. You need to create this file in the root of thefabricrepository.- Create the
.envfile:Replacebashecho "OPENAI_API_KEY=your_openai_api_key" > ENVyour_openai_api_keywith your actual OpenAI API key.
Step 3: Build and Start the Server
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.