Restrict service container privileges
This commit is contained in:
parent
ce0be360e5
commit
2a383a6c3c
2 changed files with 4 additions and 0 deletions
|
|
@ -5,9 +5,11 @@ Description=A local LLM server
|
||||||
# keep-sorted start
|
# keep-sorted start
|
||||||
AutoUpdate=registry
|
AutoUpdate=registry
|
||||||
ContainerName=ollama
|
ContainerName=ollama
|
||||||
|
DropCapability=ALL
|
||||||
Environment=OLLAMA_KEEP_ALIVE=10m
|
Environment=OLLAMA_KEEP_ALIVE=10m
|
||||||
Image=docker.io/ollama/ollama:latest
|
Image=docker.io/ollama/ollama:latest
|
||||||
Network=ollama.network
|
Network=ollama.network
|
||||||
|
NoNewPrivileges=true
|
||||||
PodmanArgs=--transient-store
|
PodmanArgs=--transient-store
|
||||||
PublishPort=11434:11434
|
PublishPort=11434:11434
|
||||||
ReadOnly=true
|
ReadOnly=true
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,10 @@ Description=A local PlantUML server
|
||||||
# keep-sorted start
|
# keep-sorted start
|
||||||
AutoUpdate=registry
|
AutoUpdate=registry
|
||||||
ContainerName=plantuml
|
ContainerName=plantuml
|
||||||
|
DropCapability=ALL
|
||||||
Image=docker.io/plantuml/plantuml-server:jetty
|
Image=docker.io/plantuml/plantuml-server:jetty
|
||||||
Network=private
|
Network=private
|
||||||
|
NoNewPrivileges=true
|
||||||
PodmanArgs=--transient-store
|
PodmanArgs=--transient-store
|
||||||
PublishPort=8080:8080
|
PublishPort=8080:8080
|
||||||
ReadOnly=true
|
ReadOnly=true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue