2023-06-17 11:35:05 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
source .env
|
|
|
|
|
2023-08-05 12:08:51 +00:00
|
|
|
if [[ -n "$OPENAI_API_BASE" ]] && [[ -n "$OPENAI_API_VERSION" ]] && [[ -n "$AZURE_DEPLOYMENT_NAME" ]] && [[ -n "$AZURE_EMBEDDINGS_DEPLOYMENT_NAME" ]]; then
|
2023-06-17 14:09:22 +00:00
|
|
|
echo "Running Azure Configuration"
|
2023-06-17 11:35:05 +00:00
|
|
|
docker-compose -f docker-compose-azure.yaml build && docker-compose -f docker-compose-azure.yaml up
|
|
|
|
else
|
2023-06-17 14:09:22 +00:00
|
|
|
echo "Running Plain Configuration"
|
2023-06-17 11:35:05 +00:00
|
|
|
docker-compose build && docker-compose up
|
|
|
|
fi
|