Files
NemesisAI/compose.yaml

24 lines
599 B
YAML

services:
nemesisBot:
image: telegrambot
build:
context: .
dockerfile: TelegramBot/Dockerfile
env_file:
- TelegramBot/.env
llm-server:
image: ghcr.io/ggerganov/llama.cpp:server-cuda
container_name: llm-server
volumes:
- ${MODEL_PATH}:/models
ports:
- "80:80"
command: -m /models/${MODEL_NAME} --port 80 --host 0.0.0.0 -n 128 -c 2048 --no-mmap -ngl 50 -fa -np 4 --keep 810
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]