Skip to content

Commit

Permalink
Add security options to docker-compose files
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronmorin committed Nov 15, 2024
1 parent 66b42bb commit 5d70a01
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ services:
TEI_ENDPOINT: ${TEI_ENDPOINT}
HUGGINGFACEHUB_API_TOKEN: ${HUGGINGFACEHUB_API_TOKEN}
restart: unless-stopped
security_opt:
- no-new-privileges:true

networks:
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ services:
- 9600:9600 # required for Performance Analyzer
networks:
- opensearch-net
security_opt:
- no-new-privileges:true
tei-embedding-service:
image: ghcr.io/huggingface/text-embeddings-inference:cpu-1.5
container_name: tei-embedding-server
Expand Down Expand Up @@ -56,6 +58,8 @@ services:
TEI_ENDPOINT: ${TEI_ENDPOINT}
HUGGINGFACEHUB_API_TOKEN: ${HUGGINGFACEHUB_API_TOKEN}
restart: unless-stopped
security_opt:
- no-new-privileges:true

networks:
default:
Expand Down

0 comments on commit 5d70a01

Please sign in to comment.