Skip to content

Commit

Permalink
Publich port 8001 and use --network=host in local docker run make t…
Browse files Browse the repository at this point in the history
…argets
  • Loading branch information
druzsan committed Jul 26, 2024
1 parent 1badd84 commit d9adc64
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,17 @@ build-image: ## Build docker image
.PHONY: run-image-openai
run-image-openai: ## Build docker image
run-image-openai: build-image
docker run -it --rm -e OPENAI_API_KEY=$$OPENAI_API_KEY -p 8000:8000 renumics-rag
docker run -it --rm -p 8000:8000 -p 8001:8001 --network=host -e OPENAI_API_KEY=$$OPENAI_API_KEY renumics-rag

.PHONY: run-image-azure
run-image-azure: ## Build docker image
run-image-azure: build-image
docker run -it --rm \
docker run -it --rm -p 8000:8000 -p 8001:8001 --network=host \
-e OPENAI_API_TYPE=$$OPENAI_API_TYPE \
-e OPENAI_API_VERSION=$$OPENAI_API_VERSION \
-e AZURE_OPENAI_API_KEY=$$AZURE_OPENAI_API_KEY \
-e AZURE_OPENAI_ENDPOINT=$$AZURE_OPENAI_ENDPOINT -p 8000:8000 renumics-rag
-e AZURE_OPENAI_ENDPOINT=$$AZURE_OPENAI_ENDPOINT \
renumics-rag

.PHONY: docker-login
docker-login: ## Log in to Azure registry
Expand Down

0 comments on commit d9adc64

Please sign in to comment.