From ba9aeaeb3e9c42d5137abdc8554f866047654963 Mon Sep 17 00:00:00 2001 From: GooeyTuxedo Date: Tue, 11 Apr 2023 19:29:41 -0700 Subject: [PATCH] Containerize bot and server in one stack. --- .gitignore | 3 ++- default.env | 1 - docker-compose.yml | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 30bd623..d296706 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .env - +node_modules/ +package-lock.json \ No newline at end of file diff --git a/default.env b/default.env index 74eaa01..542f2bd 100644 --- a/default.env +++ b/default.env @@ -4,4 +4,3 @@ CHANNEL_IDS = 1094494101631680653,1094628334727614605 ROOT_IP = 192.168.0.15 ROOT_PORT = 8000 DATA_DIR = /home/USERNAME/weights -CACHE = 1 diff --git a/docker-compose.yml b/docker-compose.yml index b0db29d..37a4ea9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,10 +8,10 @@ services: context: ./server env_file: .env volumes: - - ${DATA_DIR}:/usr/src/app/models + - ${DATA_DIR}/weights:/usr/src/app/models environment: - HOST=llama-python-server - - MODEL=./models/gpt4-x-alpaca-13b-native-4bit-128g.bin + - MODEL=./models/30B.bin llama-python-djs-bot: container_name: llama-python-djs-bot restart: unless-stopped @@ -24,3 +24,4 @@ services: - CHANNEL_IDS - ROOT_IP=llama-python-server - ROOT_PORT=8000 + - CACHE=1