changes to src/events/messageCreate.ts, Dockerfile, Modelfile, docker-compose.yml
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
# creates the docker compose
|
||||
|
||||
# build individual services
|
||||
version: '3.8'
|
||||
services:
|
||||
# setup discord bot container
|
||||
discord:
|
||||
build: ./ # find docker file in designated path
|
||||
build: ./
|
||||
container_name: discord
|
||||
restart: always # rebuild container always
|
||||
restart: always
|
||||
image: gitea.matrixwide.com/alex/discord-aidolls:0.1.0
|
||||
environment:
|
||||
CLIENT_TOKEN: ${CLIENT_TOKEN}
|
||||
@@ -18,23 +15,20 @@ services:
|
||||
networks:
|
||||
ollama-net:
|
||||
ipv4_address: ${DISCORD_IP}
|
||||
volumes:
|
||||
- discord:/src/app # docker will not make this for you, make it yourself
|
||||
|
||||
# setup redis container
|
||||
volumes:
|
||||
- discord:/app/data
|
||||
- ./src:/app/src # Mount src/ to ensure personality.json is available
|
||||
redis:
|
||||
image: redis:latest
|
||||
image: redis:alpine # Use alpine for smaller footprint
|
||||
container_name: redis
|
||||
restart: always
|
||||
networks:
|
||||
ollama-net:
|
||||
ipv4_address: ${REDIS_IP}
|
||||
volumes:
|
||||
- redis:/root/.redis
|
||||
- redis:/data
|
||||
ports:
|
||||
- ${REDIS_PORT}:${REDIS_PORT}
|
||||
|
||||
# create a network that supports giving addresses withing a specific subnet
|
||||
networks:
|
||||
ollama-net:
|
||||
driver: bridge
|
||||
@@ -42,7 +36,6 @@ networks:
|
||||
driver: default
|
||||
config:
|
||||
- subnet: ${SUBNET_ADDRESS}/16
|
||||
|
||||
volumes:
|
||||
discord:
|
||||
redis:
|
||||
|
||||
Reference in New Issue
Block a user