ollama: restrict port 11434 to 127.0.0.1 (LAN security audit)

This commit is contained in:
2026-05-03 01:40:33 +00:00
parent cb17443ab6
commit 1ac9f06e29
+1 -1
View File
@@ -4,7 +4,7 @@ services:
image: ollama/ollama:latest image: ollama/ollama:latest
restart: unless-stopped restart: unless-stopped
ports: ports:
- 11434:11434 - 127.0.0.1:11434:11434
environment: environment:
- NVIDIA_VISIBLE_DEVICES=all - NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,utility - NVIDIA_DRIVER_CAPABILITIES=compute,utility