diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..a231a69 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,18 @@ +version: '3.8' + +services: + bedrock-access-gateway: + build: + context: ./src + dockerfile: Dockerfile_ecs + ports: + - "127.0.0.1:8000:8080" + environment: + - ENABLE_PROMPT_CACHING=true + - API_KEY=${OPENAI_API_KEY} + - AWS_PROFILE + - AWS_ACCESS_KEY_ID + - AWS_SECRET_ACCESS_KEY + - AWS_SESSION_TOKEN + volumes: + - ${HOME}/.aws:/home/appuser/.aws diff --git a/scripts/push-to-ecr.sh b/scripts/push-to-ecr.sh index 7139750..2f2d633 100755 --- a/scripts/push-to-ecr.sh +++ b/scripts/push-to-ecr.sh @@ -7,6 +7,9 @@ set -o errexit # exit on first error set -o nounset # exit on using unset variables set -o pipefail # exit on any error in a pipeline +# Change to the directory where the script is located +cd "$(dirname "$0")" + # Prompt user for inputs echo "================================================" echo "Bedrock Access Gateway - Build and Push to ECR"