From e47b45506d4c4a81d6abb35a491d2879a52526f6 Mon Sep 17 00:00:00 2001 From: Matthew Harris Date: Sun, 30 Jun 2024 16:40:07 -0400 Subject: [PATCH] Added e2e tests GH action, with docker compose build - debugging action --- docker-compose-dev.yml | 100 ++++++++++++++++++++--------------------- 1 file changed, 50 insertions(+), 50 deletions(-) diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml index 4635a446..6dc4036a 100644 --- a/docker-compose-dev.yml +++ b/docker-compose-dev.yml @@ -1,23 +1,23 @@ #version: "3.4" services: - promptflow: - build: - context: . - dockerfile: ./flows/chainlit-ui-evaluation//Dockerfile - args: - OPENAI_API_KEY: ${OPENAI_API_KEY} - OPENAI_API_ENDPOINT: ${ASSISTANTS_BASE_URL} - container_name: recipes-ai-promptflow - env_file: - - .env - volumes: - - ./flows:/app - - ./utils:/app/chainlit-ui-evaluation/utils - - ./templates:/app/chainlit-ui-evaluation/templates - - shared-data:/app/chainlit-ui-evaluation/recipes/public - - ./management/skills.py:/app/chainlit-ui-evaluation/recipes/skills.py - - ./ui/chat-chainlit-assistant/app.py:/app/chainlit-ui-evaluation/app.py + # promptflow: + # build: + # context: . + # dockerfile: ./flows/chainlit-ui-evaluation//Dockerfile + # args: + # OPENAI_API_KEY: ${OPENAI_API_KEY} + # OPENAI_API_ENDPOINT: ${ASSISTANTS_BASE_URL} + # container_name: recipes-ai-promptflow + # env_file: + # - .env + # volumes: + # - ./flows:/app + # - ./utils:/app/chainlit-ui-evaluation/utils + # - ./templates:/app/chainlit-ui-evaluation/templates + # - shared-data:/app/chainlit-ui-evaluation/recipes/public + # - ./management/skills.py:/app/chainlit-ui-evaluation/recipes/skills.py + # - ./ui/chat-chainlit-assistant/app.py:/app/chainlit-ui-evaluation/app.py datadb: #image: postgis/postgis:12-3.4 @@ -34,40 +34,40 @@ services: - ./data/datadb:/var/lib/postgresql/data env_file: - .env - recipedb: - image: ankane/pgvector:latest - container_name: recipes-ai-recipesdb - environment: - POSTGRES_DB: ${POSTGRES_RECIPE_DB} - POSTGRES_USER: ${POSTGRES_RECIPE_USER} - POSTGRES_PASSWORD: ${POSTGRES_RECIPE_PASSWORD} - restart: always - ports: - - 5435:5432 - volumes: - - ./db/recipedb:/docker-entrypoint-initdb.d - - ./data/recipesdb:/var/lib/postgresql/data - env_file: - - .env + # recipedb: + # image: ankane/pgvector:latest + # container_name: recipes-ai-recipesdb + # environment: + # POSTGRES_DB: ${POSTGRES_RECIPE_DB} + # POSTGRES_USER: ${POSTGRES_RECIPE_USER} + # POSTGRES_PASSWORD: ${POSTGRES_RECIPE_PASSWORD} + # restart: always + # ports: + # - 5435:5432 + # volumes: + # - ./db/recipedb:/docker-entrypoint-initdb.d + # - ./data/recipesdb:/var/lib/postgresql/data + # env_file: + # - .env - server: - platform: linux/amd64 - container_name: recipes-ai-server - build: - context: . - dockerfile: ./server/fastapi/Dockerfile - args: - DATA_DB_CONN_STRING: ${DATA_DB_CONN_STRING} - ports: - - 4001:8080 - env_file: - - .env - volumes: - - ./server/fastapi:/app - - shared-data:/app/recipes/public - - ./templates:/app/templates - - ./utils:/app/utils - - ./management/skills.py:/app/recipes/skills.py + # server: + # platform: linux/amd64 + # container_name: recipes-ai-server + # build: + # context: . + # dockerfile: ./server/fastapi/Dockerfile + # args: + # DATA_DB_CONN_STRING: ${DATA_DB_CONN_STRING} + # ports: + # - 4001:8080 + # env_file: + # - .env + # volumes: + # - ./server/fastapi:/app + # - shared-data:/app/recipes/public + # - ./templates:/app/templates + # - ./utils:/app/utils + # - ./management/skills.py:/app/recipes/skills.py volumes: