From d3162bce3283a6f1ecf810009ec5552e959510a8 Mon Sep 17 00:00:00 2001 From: Raven Scott Date: Wed, 12 Apr 2023 16:19:27 +0200 Subject: [PATCH] dockerize update --- default.env | 3 ++- docker-compose.yml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/default.env b/default.env index 8861bd1..542f2bd 100644 --- a/default.env +++ b/default.env @@ -1,5 +1,6 @@ THE_TOKEN = "DISCORD_TOKEN_HERE" CHANNEL_IDS = 1094494101631680653,1094628334727614605 +# ROOT_IP is only used when running the bot without docker compose ROOT_IP = 192.168.0.15 ROOT_PORT = 8000 -DATA_DIR = /home/USERNAME/weights \ No newline at end of file +DATA_DIR = /home/USERNAME/weights diff --git a/docker-compose.yml b/docker-compose.yml index 0667732..b0db29d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,7 +8,7 @@ services: context: ./server env_file: .env volumes: - - ${DATA_DIR}/weights:/usr/src/app/models + - ${DATA_DIR}:/usr/src/app/models environment: - HOST=llama-python-server - MODEL=./models/gpt4-x-alpaca-13b-native-4bit-128g.bin @@ -23,4 +23,4 @@ services: - THE_TOKEN - CHANNEL_IDS - ROOT_IP=llama-python-server - - ROOT_PORT=8000 \ No newline at end of file + - ROOT_PORT=8000