diff --git a/deploy_azure.py b/deploy_azure.py index 4502dea1..19303f10 100644 --- a/deploy_azure.py +++ b/deploy_azure.py @@ -19,12 +19,14 @@ container_registry = "dkdsprototypesreg01.azurecr.io" tags = { - "ankane/pgvector:latest": [f"{container_registry}/containergroup","vectordb"], - "getmeili/meilisearch:v1.7.3": [f"{container_registry}/containergroup","meilisearch"], - "mongo": [f"{container_registry}/containergroup","mongodb"], - "humanitarian_ai_assistant-actions": [f"{container_registry}/containergroup","actions"], - "ghcr.io/danny-avila/librechat-rag-api-dev-lite:latest": [f"{container_registry}/containergroup","rag_api"], "humanitarian_ai_assistant-api": [f"{container_registry}/containergroup","api"], + "mongo": [f"{container_registry}/containergroup","mongodb"], + "getmeili/meilisearch:v1.7.3": [f"{container_registry}/containergroup","meilisearch"], + "ghcr.io/danny-avila/librechat-rag-api-dev-lite:latest": [f"{container_registry}/containergroup","rag_api"], + "humanitarian_ai_assistant-actions": [f"{container_registry}/containergroup","actions"], + "busybox": [f"{container_registry}/containergroup","init"], + "nginx:latest": [f"{container_registry}/containergroup","nginx"], + "ghcr.io/iamgreggarcia/codesphera:latest": [f"{container_registry}/containergroup","code-interpreter"], } docker_compose_file = "docker-compose.yml" azure_platform = "linux/amd64" diff --git a/docker-compose-azure.yml b/docker-compose-azure.yml index 1be75b13..f237af85 100644 --- a/docker-compose-azure.yml +++ b/docker-compose-azure.yml @@ -15,18 +15,10 @@ services: - "host.docker.internal:host-gateway" environment: HOST: 0.0.0.0 - MONGO_URI: mongodb://mongodb:27017/LibreChat + MONGO_URI: mongodb+srv://matthew:c5tZja0psz5Qo7dC@hum-ai-libre-chat.mcyk70v.mongodb.net/?retryWrites=true&w=majority&appName=hum-ai-libre-chat MEILI_HOST: http://meilisearch:7700 RAG_PORT: 8000 RAG_API_URL: http://rag_api:8000 - mongodb: - image: "dkdsprototypesreg01.azurecr.io/containergroup:mongodb" - platform: "linux/amd64" - restart: always - user: "${UID}:${GID}" - command: mongod --noauth - volumes: - - ${WEBAPP_STORAGE_HOME}/data/mongodb:/data/db meilisearch: image: "dkdsprototypesreg01.azurecr.io/containergroup:meilisearch" #platform: "linux/amd64" @@ -35,32 +27,48 @@ services: environment: MEILI_HOST: http://meilisearch:7700 MEILI_NO_ANALYTICS: true - volumes: - - ${WEBAPP_STORAGE_HOME}/data/meili_data:/meili_data - vectordb: - image: "dkdsprototypesreg01.azurecr.io/containergroup:vectordb" - platform: "linux/amd64" - environment: - POSTGRES_DB: mydatabase - POSTGRES_USER: myuser - POSTGRES_PASSWORD: mypassword - restart: always - volumes: - - ${WEBAPP_STORAGE_HOME}/data/vectordb:/var/lib/postgresql/data + #vectordb: + # image: "dkdsprototypesreg01.azurecr.io/containergroup:vectordb" + # platform: "linux/amd64" + # environment: + # POSTGRES_DB: mydatabase + # POSTGRES_USER: myuser + # POSTGRES_PASSWORD: mypassword + # restart: always rag_api: image: "dkdsprototypesreg01.azurecr.io/containergroup:rag_api" platform: "linux/amd64" environment: - DB_HOST: vectordb - POSTGRES_USER: myuser - POSTGRES_PASSWORD: mypassword + DB: hdexpert-alpha + DB_PORT: 5432 + DB_HOST: postgres-prototypes.postgres.database.azure.com + POSTGRES_USER: bots_rule3 + POSTGRES_PASSWORD: 96__Mou9!2Yl RAG_PORT: 8000 restart: always - depends_on: - - vectordb actions: image: "dkdsprototypesreg01.azurecr.io/containergroup:actions" platform: linux/amd64 + volumes: + - shared-data:/action-server/actions/actions_plugins/recipe-server/images + init: + image: dkdsprototypesreg01.azurecr.io/containergroup:init + volumes: + - shared-data:/data + command: "sh -c 'chown -R 1000:1000 /data && chmod -R 775 /data'" + user: "root" + depends_on: + - actions + nginx: + image: dkdsprototypesreg01.azurecr.io/containergroup:nginx + volumes: + - shared-data:/usr/share/nginx/html + restart: always + code-interpretor: + image: dkdsprototypesreg01.azurecr.io/containergroup:code-interpreter + volumes: + - ./code-interpretor/static:/app/static + command: python3 -c "import localserver.main; localserver.main.start()" volumes: - pgdata2: \ No newline at end of file + shared-data: \ No newline at end of file