fix(patrizio): move extra_hosts to tailscale service
Containers using network_mode: service:X share the target container's network namespace including /etc/hosts. Move the ollama hosts entry to the tailscale service so it applies to the shared namespace.
This commit is contained in:
parent
c2ff70f79d
commit
5f69d3b389
@ -3,8 +3,6 @@ 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
|
||||||
@ -24,6 +22,8 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
dns:
|
dns:
|
||||||
- 100.100.100.100
|
- 100.100.100.100
|
||||||
|
extra_hosts:
|
||||||
|
- "ollama.lan.poldebra.me:100.64.0.7"
|
||||||
env_file:
|
env_file:
|
||||||
- tailscale.env
|
- tailscale.env
|
||||||
command: >
|
command: >
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user