fix(patrizio): add extra_hosts to resolve ollama to tailscale IP
MagicDNS is broken in the container (DNS proxy returns SERVFAIL with 'no upstream resolvers set'). Use extra_hosts as a reliable workaround to ensure ollama.lan.poldebra.me resolves to its Tailscale IP 100.64.0.7 instead of the server's public IP which has an expired cert.
This commit is contained in:
parent
ddc7e5a1b6
commit
c2ff70f79d
@ -3,6 +3,8 @@ services:
|
|||||||
image: ghcr.io/polpetta/patrizio-bot:v0.2.0
|
image: ghcr.io/polpetta/patrizio-bot:v0.2.0
|
||||||
network_mode: service:tailscale
|
network_mode: service:tailscale
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
extra_hosts:
|
||||||
|
- "ollama.lan.poldebra.me:100.64.0.7"
|
||||||
command: -f /data/ serve
|
command: -f /data/ serve
|
||||||
volumes:
|
volumes:
|
||||||
- ./data:/data:rw
|
- ./data:/data:rw
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user