Isolate the LLM server from the internet
This commit is contained in:
parent
e5087f5023
commit
75ed82967c
2 changed files with 6 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ Description=A local LLM server
|
|||
# keep-sorted start
|
||||
ContainerName=ollama
|
||||
Image=docker.io/ollama/ollama:latest
|
||||
Network=ollama.network
|
||||
PublishPort=11434:11434
|
||||
Volume=%h/.local/share/ollama:/root/.ollama:ro,z
|
||||
# keep-sorted end
|
||||
|
|
|
|||
5
.config/containers/systemd/ollama.network
Normal file
5
.config/containers/systemd/ollama.network
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
[Unit]
|
||||
Description=Isolated network for my local LLM server
|
||||
|
||||
[Network]
|
||||
Internal=true
|
||||
Loading…
Add table
Add a link
Reference in a new issue