Thanks to visit codestin.com
Credit goes to github.com

Skip to content

illogical/ollama-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ollama-docker

A Docker configuration for building an Ollama server exposed to a Tailnet.

Usage

  1. Set up your Tailscale Auth Key

    • Obtain a Tailscale auth key.
    • Create a .env file in this directory with:
      TS_AUTHKEY=tskey-xxxxxxxxxxxxxxxx
      OLLAMA_HOSTNAME=ollama-server
      OLLAMA_URL=https://ollama-server.host.com
      
    • Replace tskey-xxxxxxxxxxxxxxxx with your actual Tailscale auth key.
    • Replace ollama-server with the desired hostname for your Ollama server via Tailscale.
    • Replace https://ollama-server.host.com with the URL you want to use for accessing the Ollama server.
  2. Update the Caddyfile

    • Ensure the Caddyfile is configured to use the hostname specified in your .env file. The default configuration should work if you set OLLAMA_HOSTNAME=ollama-server.
  3. Build the Docker image

    docker-compose build
  4. Run the Docker container

    docker-compose up -d
  5. Access the Ollama server

    • Open your web browser and navigate to http://ollama-server:11434 or use the hostname you specified in the .env file.
  6. Stop the Docker container

    docker-compose down

About

A Docker configuration for building an Ollama server exposed to a Tailnet.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published