Files
NemesisAI/compose.yaml
Samuele Lorefice 773203127f They can now answer
2024-12-26 20:19:59 +01:00

26 lines
644 B
YAML

services:
nemesisBot:
image: telegrambot
container_name: telegrambot
build:
context: .
dockerfile: TelegramBot/Dockerfile
env_file:
- .env
- 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 ${CONTEXT_SIZE} --no-mmap -ngl 50 -fa -np 4
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]