Containerize bot and server in one stack.
This commit is contained in:
parent
c97e525d45
commit
a854079e3c
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
.env
|
||||
|
||||
node_modules/
|
||||
package-lock.json
|
@ -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
|
||||
@ -22,6 +22,7 @@ services:
|
||||
environment:
|
||||
- THE_TOKEN
|
||||
- CHANNEL_IDS
|
||||
- INIT_PROMPT
|
||||
- ROOT_IP=llama-python-server
|
||||
- ROOT_PORT=8000
|
||||
- INIT_PROMPT
|
||||
- CACHE=1
|
||||
|
Loading…
Reference in New Issue
Block a user