Skip to content

kasimrafique/escape

Repository files navigation

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

About

RP Game, convince the AI to let you escape

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages