diff --git a/development/.env.hivemind.api.sample b/development/.env.hivemind.api.sample new file mode 100644 index 0000000..d34d4b5 --- /dev/null +++ b/development/.env.hivemind.api.sample @@ -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= \ No newline at end of file diff --git a/development/.env.hivemind.vector.server.sample b/development/.env.hivemind.vector.server.sample new file mode 100644 index 0000000..d32c32d --- /dev/null +++ b/development/.env.hivemind.vector.server.sample @@ -0,0 +1,11 @@ +OPENAI_API_KEY= +OPENAI_API_MODEL= + +DB_CONNECTION_STR= +DB_GUILD= + +REDIS_HOST= + +RABBITMQ_HOST= +RABBITMQ_USER= +RABBITMQ_PASS= \ No newline at end of file diff --git a/development/.env.hivemind.vector.worker.sample b/development/.env.hivemind.vector.worker.sample new file mode 100644 index 0000000..d32c32d --- /dev/null +++ b/development/.env.hivemind.vector.worker.sample @@ -0,0 +1,11 @@ +OPENAI_API_KEY= +OPENAI_API_MODEL= + +DB_CONNECTION_STR= +DB_GUILD= + +REDIS_HOST= + +RABBITMQ_HOST= +RABBITMQ_USER= +RABBITMQ_PASS= \ No newline at end of file diff --git a/development/docker-compose.yml b/development/docker-compose.yml index f0aee0c..b056ced 100644 --- a/development/docker-compose.yml +++ b/development/docker-compose.yml @@ -269,6 +269,7 @@ services: - monitoring <<: *logging + # HIVEMIND SERVICES - START hivemind-vector-server: image: ghcr.io/kamikazebr/qabot:main-vector_server depends_on: @@ -279,22 +280,28 @@ 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 @@ -302,6 +309,7 @@ services: - hivemind - monitoring <<: *logging + hivemind-vector-redis: image: redis:7.0.11 restart: unless-stopped @@ -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: @@ -343,6 +354,7 @@ volumes: neo4j_data: neo4j_import: neo4j_plugins: + hivemind_vector_store: networks: development: @@ -350,3 +362,5 @@ networks: monitoring: driver: bridge external: true + hivemind: + driver: bridge diff --git a/development/redis/hivemind.vector.conf.sample b/development/redis/hivemind.vector.conf.sample new file mode 100644 index 0000000..6cac345 --- /dev/null +++ b/development/redis/hivemind.vector.conf.sample @@ -0,0 +1 @@ +requirepass PASSWORD \ No newline at end of file