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}"