tsdproxy not exposing app to tailscale network #234
Unanswered
patrickfriedman
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I am new to tsdproxy and am trying to create a self hosted ai through ollama and webui.
I am doing this through my home desktop due to it having a GPU. I run tailscale on my desktop, however I am running docker and the apps through wsl ubuntu.
Here is my compose files:
services:
TSDProxy (Tailscale MagicDNS)
tsdproxy:
image: almeidapaulopt/tsdproxy:latest
container_name: tsdproxy
restart: unless-stopped
environment:
- TSDPROXY_AUTHKEY=
- DOCKER_HOST=unix:///var/run/docker.sock
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- tsdproxydata:/data # Store data for tsdproxy
- ./config:/config
networks:
- app_network # Ensure all services share the same network
Ollama (Backend Service)
ollama:
image: ollama/ollama:latest # Ensure this image supports GPU (e.g., use an NVIDIA container if needed)
container_name: ollama
runtime: nvidia # Use the NVIDIA runtime for GPU access
environment:
- NVIDIA_VISIBLE_DEVICES=all # Expose all GPUs
- NVIDIA_DRIVER_CAPABILITIES=compute,utility # Specify GPU capabilities
volumes:
- ollama-data:/ollama-data # For persisting data, adjust as needed
expose:
- 11434 # Expose the Ollama API port without publishing it to the host
networks:
- app_network # Ensure all services share the same network
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:11434/health"]
interval: 30s
retries: 3
start_period: 20s
timeout: 10s
OpenWebUI (Frontend for Ollama)
openwebui:
image: ghcr.io/open-webui/open-webui:main
container_name: openwebui
restart: unless-stopped
environment:
- OLLAMA_BASE_URL=http://ollama:11434 # Use the service name as the hostname
volumes:
- open-webui:/app/backend/data # Persistent storage for the WebUI
labels:
tsdproxy.enable: "true"
tsdproxy.name: "openwebui"
tsdproxy.port: "8080"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/status"] # Adjust the URL as needed
interval: 30s
retries: 3
start_period: 20s
timeout: 10s
ports:
- "8080:8080" # Publish the OpenWebUI port to the host
networks:
- app_network # Ensure all services share the same network
Ollama, Webui, and tsdproxy spin up correctly and a machine named openwebui does show up on my tailnet, however I can only access webui through localhost, it will not work using magic DNS, I cannot figure out why this is. I assumed tsdproxy handles tls with https and making sure the subnet is exposed, I do not have tailscale on the wsl docker host, only locally.
All reactions