From 43d630a42ac62430492a0e182faa780690438b92 Mon Sep 17 00:00:00 2001 From: Mithra <50359897+GsnMithra@users.noreply.github.com> Date: Mon, 20 Nov 2023 18:21:25 +0530 Subject: [PATCH] open-api-key --- docker-compose.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 3b3bcec..b91ae1b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,10 +9,9 @@ services: env_file: - .env - # or - # environment: - #- BACKEND_PORT=7001 # if you change the port, make sure to also change the VITE_WS_BACKEND_URL at frontend/.env.local - # - OPENAI_API_KEY=your_openai_api_key + environment: + - BACKEND_PORT=7001 # if you change the port, make sure to also change the VITE_WS_BACKEND_URL at frontend/.env.local + - OPENAI_API_KEY=${OPENAI_API_KEY:-} # works when you have the OPENAI_API_KEY set in your .env file ports: - "${BACKEND_PORT:-7001}:${BACKEND_PORT:-7001}"