Skip to content

Commit 15dda88

Browse files
committed
docs: add remote Ollama server configuration example
Document how to use extra_hosts for accessing Ollama servers on the local network from Docker Desktop (Windows/Mac)
1 parent 1194c43 commit 15dda88

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

DOCKER.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,31 @@ services:
8282
docker compose up -d
8383
```
8484

85+
## Using with Remote Ollama Server
86+
87+
If your Ollama server is on a different machine in your local network:
88+
89+
```yaml
90+
version: '3.8'
91+
92+
services:
93+
translate-book:
94+
image: ghcr.io/hydropix/translatebookswithllms:latest
95+
ports:
96+
- "5000:5000"
97+
environment:
98+
- API_ENDPOINT=http://ollama-server.local:11434/api/generate
99+
- LLM_PROVIDER=ollama
100+
extra_hosts:
101+
# Map hostname to IP (required for Docker Desktop on Windows/Mac)
102+
- "ollama-server.local:192.168.1.100"
103+
volumes:
104+
- ./translated_files:/app/translated_files
105+
- ./logs:/app/logs
106+
```
107+
108+
**Note:** Docker Desktop isolates containers from your local network. Use `extra_hosts` to map hostnames to IP addresses.
109+
85110
## Multi-Platform Support
86111

87112
The images are built for multiple architectures:

0 commit comments

Comments
 (0)