Add docker build files and set chat default settings via exposed env vars

This commit is contained in:
GooeyTuxedo
2023-04-07 14:27:13 -07:00
parent e3c5341561
commit 4518df8312
4 changed files with 46 additions and 3 deletions

30
docker-compose.yml Normal file
View File

@ -0,0 +1,30 @@
version: '3'
services:
serge-discord-bot:
container_name: serge-discord-bot
build:
context: .
environment:
- NODE_ENV=production
## Env Vars for rAi chatbot
- TOKEN={$TOKEN}
- PUBLIC_URL={$PUBLIC_URL}
- INTERNAL_IP=serge
- SERGE_PORT=8008
## Default chat settings overrides
- MODEL="gpt4all"
- TEMPERATURE=0.1
- TOPK=50
- TOPP=0.95
- MAXLENGTH=256
- CONTEXTWINDOW=512
- REPEATLASTN=64
- REPEATPENALTY=1.3
- NTHREADS=8
# - INITPROMPT="some custom prompt"
networks:
- serge_default
networks:
serge_default:
external: true