Commit d1837e1
chore(docker): ship extra_hosts so vector memory works zero-config
Adding `host.docker.internal:host-gateway` to the bot service in
docker-compose.yml means an Ollama (or any other host-side embedding
provider) just works after the user fills EMBEDDING_BASE_URL — no
docker-compose edit + recreate dance. The mapping is harmless when
not in use (just a /etc/hosts entry inside the container).
docs/VECTOR_MEMORY.md drops the manual compose tweak step and gains a
clearer Ollama systemd override snippet (OLLAMA_HOST=0.0.0.0:11434),
plus a security callout to firewall the port from the public internet.
README's "no host.docker.internal" line is now wrong and is replaced
with the actual behaviour.
Requires Docker 20.10+ (released Dec 2020) for host-gateway.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 3c36b1b commit d1837e1
3 files changed
Lines changed: 53 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
26 | 32 | | |
27 | 33 | | |
28 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
30 | 35 | | |
31 | 36 | | |
32 | | - | |
33 | 37 | | |
| 38 | + | |
34 | 39 | | |
35 | | - | |
36 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
37 | 64 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
43 | 74 | | |
44 | 75 | | |
45 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
46 | 79 | | |
47 | 80 | | |
48 | 81 | | |
49 | 82 | | |
50 | 83 | | |
51 | 84 | | |
52 | 85 | | |
53 | | - | |
| 86 | + | |
54 | 87 | | |
55 | 88 | | |
56 | 89 | | |
| 90 | + | |
57 | 91 | | |
58 | 92 | | |
59 | | - | |
| 93 | + | |
60 | 94 | | |
61 | 95 | | |
62 | 96 | | |
| |||
0 commit comments