running with docker-compose with .sh script for more convenience with Azure.

This commit is contained in:
Anton Larin
2023-06-17 13:35:05 +02:00
parent 006897f1c0
commit fb10a546d6
4 changed files with 79 additions and 7 deletions

9
run-with-docker-compose.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
source .env
if [[ -n "$OPENAI_API_BASE" ]] && [[ -n "$OPENAI_API_VERSION" ]] && [[ -n "$AZURE_DEPLOYMENT_NAME" ]] && [[ -n "$AZURE_EMBEDDINGS_DEPLOYMENT_NAME" ]]; then
docker-compose -f docker-compose-azure.yaml build && docker-compose -f docker-compose-azure.yaml up
else
docker-compose build && docker-compose up
fi