Skip to content

Commit

Permalink
adding endpoint for ollama api
Browse files Browse the repository at this point in the history
fix network
  • Loading branch information
LegitCamper committed Mar 30, 2024
1 parent a8acdf2 commit eab1544
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 12 additions & 2 deletions ai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,25 @@ services:
container_name: ollama
restart: always
networks:
- internal
- web
expose:
- 11434
env_file:
- ./secrets/homelab.env
volumes:
- ollama_data:/root/.ollama
labels:
- "traefik.enable=false"
- "traefik.enable=true"
- "traefik.docker.network=web"
- "traefik.http.routers.ollama-api.entrypoints=http"
- "traefik.http.routers.ollama-api.rule=Host(`ollama-api.${DOMAIN}`)"
- "traefik.http.middlewares.ollama-api-https-redirect.redirectscheme.scheme=https"
- "traefik.http.middlewares.sslheader.headers.customrequestheaders.X-Forwarded-Proto=https"
- "traefik.http.routers.ollama-api.middlewares=ollama-api-https-redirect"
- "traefik.http.routers.ollama-api-secure.entrypoints=https"
- "traefik.http.routers.ollama-api-secure.rule=Host(`ollama-api.${DOMAIN}`)"
- "traefik.http.routers.ollama-api-secure.tls=true"
- "traefik.http.routers.ollama-api-secure.tls.certresolver=${DNS}"
deploy:
resources:
reservations:
Expand Down
4 changes: 4 additions & 0 deletions dashy/conf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ sections:
icon: https://ollama.com/public/ollama.png
url: https://ollama.$DOMAIN
target: newtab
- title: Ollama API
icon: https://ollama.com/public/ollama.png
url: https://ollama-api.$DOMAIN
target: clipboard
- name: Gaming
displayData:
sortBy: default
Expand Down

0 comments on commit eab1544

Please sign in to comment.