From 97fe1abfd8821d3d0900e135b21c3271d8a7df8c Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 11 Apr 2023 22:49:47 +0100 Subject: [PATCH] .env Co-Authored-By: Subhadip N --- README.md | 2 +- docker-compose.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 6f2ceb62..9c39c2a8 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ You can find our [Roadmap](https://github.com/orgs/arc53/projects/2) here, pleas Note: Make sure you have docker installed 1. Open dowload this repository with `git clone https://github.com/arc53/DocsGPT.git` -2. Open docker-compose.yaml and replace with your OpenAI's key (there are 4 places) +2. Create .env file in your root directory and set your OPENAI_API_KEY with your openai api key 3. Run `docker-compose build && docker-compose up` 4. Navigate to http://localhost:5173/ diff --git a/docker-compose.yaml b/docker-compose.yaml index 6a4b4cf2..1052b614 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -13,8 +13,8 @@ services: backend: build: ./application environment: - - API_KEY= - - EMBEDDINGS_KEY= + - API_KEY=$OPENAI_API_KEY + - EMBEDDINGS_KEY=$OPENAI_API_KEY - CELERY_BROKER_URL=redis://redis:6379/0 - CELERY_RESULT_BACKEND=redis://redis:6379/1 - MONGO_URI=mongodb://mongo:27017/docsgpt @@ -32,8 +32,8 @@ services: build: ./application command: celery -A app.celery worker -l INFO environment: - - API_KEY= - - EMBEDDINGS_KEY= + - API_KEY=$OPENAI_API_KEY + - EMBEDDINGS_KEY=$OPENAI_API_KEY - CELERY_BROKER_URL=redis://redis:6379/0 - CELERY_RESULT_BACKEND=redis://redis:6379/1 - MONGO_URI=mongodb://mongo:27017/docsgpt