2023-06-17 11:35:05 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
source .env
|
|
|
|
|
2023-07-12 15:37:56 +00:00
|
|
|
if [[ -n "$AZURE_OPENAI_API_BASE" ]] && [[ -n "$AZURE_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
|