Skip to content

Commit

Permalink
Merge pull request #89 from RnDAO/hivemind
Browse files Browse the repository at this point in the history
Hivemind
  • Loading branch information
cyri113 authored Dec 1, 2023
2 parents e05b387 + 8e9f95f commit ad9880c
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 7 deletions.
12 changes: 12 additions & 0 deletions development/.env.hivemind.api.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#OpenAI CONFIG
OPENAI_API_KEY=
OPENAI_API_MODEL=

# AGENT CONFIG
AGENT_NAME=
AGENT_ROLE=

# BROKER EVENTS CONFIG
RABBITMQ_HOST=
RABBITMQ_USER=
RABBITMQ_PASS=
11 changes: 11 additions & 0 deletions development/.env.hivemind.vector.server.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
OPENAI_API_KEY=
OPENAI_API_MODEL=

DB_CONNECTION_STR=
DB_GUILD=

REDIS_HOST=

RABBITMQ_HOST=
RABBITMQ_USER=
RABBITMQ_PASS=
11 changes: 11 additions & 0 deletions development/.env.hivemind.vector.worker.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
OPENAI_API_KEY=
OPENAI_API_MODEL=

DB_CONNECTION_STR=
DB_GUILD=

REDIS_HOST=

RABBITMQ_HOST=
RABBITMQ_USER=
RABBITMQ_PASS=
28 changes: 21 additions & 7 deletions development/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ services:
- monitoring
<<: *logging

# HIVEMIND SERVICES - START
hivemind-vector-server:
image: ghcr.io/kamikazebr/qabot:main-vector_server
depends_on:
Expand All @@ -279,29 +280,36 @@ services:
hivemind-vector-worker:
condition: service_healthy
env_file:
- .hivemind.vector-server.env
- .env.hivemind.vector.server
networks:
- hivemind
- development
- monitoring
<<: *logging
ports:
- 41234:1234

hivemind-vector-worker:
image: ghcr.io/kamikazebr/qabot:main-vector_server
env_file:
- .hivemind.vector-worker.env
- .env.hivemind.vector.worker
depends_on:
hivemind-vector-redis:
condition: service_healthy
command: celery -A tasks.celery worker -c 1 --hostname celery --loglevel=info
command: celery -A tasks.celery worker -c 1 --hostname hivemind-vector-worker --loglevel=info
volumes:
- hivemind_vector_store:/project/vector_store
healthcheck:
test: ["CMD", "celery", "inspect", "ping", "-A", "tasks.add", "-d" "celery@celery"]
interval: 60s
test: ["CMD-SHELL", "celery -A tasks.celery inspect ping"]
interval: 10s
timeout: 10s
retries: 2
start_period: 10s
networks:
- hivemind
- monitoring
<<: *logging

hivemind-vector-redis:
image: redis:7.0.11
restart: unless-stopped
Expand All @@ -321,17 +329,20 @@ services:
- hivemind
- monitoring
<<: *logging

hivemind-api:
image: ghcr.io/kamikazebr/qabot:main-ml
env_file:
- .hivemind.api.env
- .env.hivemind.api
networks:
- hivemind
- development
- monitoring
<<: *logging
ports:
- 43333:3333


# HIVEMIND SERVICES - END

volumes:
mongodb_data_container:
Expand All @@ -343,10 +354,13 @@ volumes:
neo4j_data:
neo4j_import:
neo4j_plugins:
hivemind_vector_store:

networks:
development:
driver: bridge
monitoring:
driver: bridge
external: true
hivemind:
driver: bridge
1 change: 1 addition & 0 deletions development/redis/hivemind.vector.conf.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
requirepass PASSWORD

0 comments on commit ad9880c

Please sign in to comment.