Skip to content

Latest commit

 

History

History
97 lines (71 loc) · 1.92 KB

README.md

File metadata and controls

97 lines (71 loc) · 1.92 KB

Escape

Create a separate directory

mkdir escape-game

There are 2 different ways to deploy:

  1. Docker
  2. Local

Deploying on Docker

Prerequisites: docker, docker compose

NOTE Assumes deploying with 'nginx proxy manager', on the nginx-default network

First we need to create an environment file with the default api hostname

echo "OLLAMA_API_HOST=ollama" >> .env

Nvidia GPU

Improves the performance of ollama
curl https://raw.githubusercontent.com/Doozy134/escape/main/docker-compose-gpu.yml > docker-compose.yml
docker compose up -d

Without GPU

curl https://raw.githubusercontent.com/Doozy134/escape/main/docker-compose.yml > docker-compose.yml
docker compose up -d

Install Mistral

You need to now install Mistral within the Ollama Container.

docker exec -it ollama sh
# once inside the container pull the manifest
ollama pull mistral 

Add to Nginx Proxy Manager

  • Add a new proxy host
  • Request an SSL

Running Locally

You need to install ollama, for example on linux:

curl -fsSL https://ollama.com/install.sh | sh

Now we need to download the correct model

ollama pull mistral

In a separate terminal, run ollama run mistral

Then in a different terminal we can use node to run the frontend:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser