dockerize update

This commit is contained in:
Raven Scott 2023-04-12 16:19:27 +02:00
parent ec7dbde761
commit d3162bce32
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,6 @@
THE_TOKEN = "DISCORD_TOKEN_HERE" THE_TOKEN = "DISCORD_TOKEN_HERE"
CHANNEL_IDS = 1094494101631680653,1094628334727614605 CHANNEL_IDS = 1094494101631680653,1094628334727614605
# ROOT_IP is only used when running the bot without docker compose
ROOT_IP = 192.168.0.15 ROOT_IP = 192.168.0.15
ROOT_PORT = 8000 ROOT_PORT = 8000
DATA_DIR = /home/USERNAME/weights DATA_DIR = /home/USERNAME/weights

View File

@ -8,7 +8,7 @@ services:
context: ./server context: ./server
env_file: .env env_file: .env
volumes: volumes:
- ${DATA_DIR}/weights:/usr/src/app/models - ${DATA_DIR}:/usr/src/app/models
environment: environment:
- HOST=llama-python-server - HOST=llama-python-server
- MODEL=./models/gpt4-x-alpaca-13b-native-4bit-128g.bin - MODEL=./models/gpt4-x-alpaca-13b-native-4bit-128g.bin