From c3387ba974a1ee5650a6ca3ee4cc79e18cb50c5b Mon Sep 17 00:00:00 2001 From: pablohashescobar <118773738+pablohashescobar@users.noreply.github.com> Date: Wed, 3 May 2023 21:31:06 +0530 Subject: [PATCH] fix: environment variables for the services (#1001) --- docker-compose-hub.yml | 8 ++++---- docker-compose.yml | 44 +++++++++++++++++++++--------------------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/docker-compose-hub.yml b/docker-compose-hub.yml index b36d50267..435e47b29 100644 --- a/docker-compose-hub.yml +++ b/docker-compose-hub.yml @@ -72,8 +72,8 @@ services: GITHUB_CLIENT_SECRET: ${GITHUB_CLIENT_SECRET} DISABLE_COLLECTSTATIC: 1 DOCKERIZED: 1 - OPENAI_API_KEY: 0 - GPT_ENGINE: 0 + OPENAI_API_KEY: ${OPENAI_API_KEY} + GPT_ENGINE: ${GPT_ENGINE} SECRET_KEY: ${SECRET_KEY} depends_on: - db @@ -108,8 +108,8 @@ services: GITHUB_CLIENT_SECRET: ${GITHUB_CLIENT_SECRET} DISABLE_COLLECTSTATIC: 1 DOCKERIZED: 1 - OPENAI_API_KEY: 0 - GPT_ENGINE: 0 + OPENAI_API_KEY: ${OPENAI_API_KEY} + GPT_ENGINE: ${GPT_ENGINE} SECRET_KEY: ${SECRET_KEY} volumes: pgdata: diff --git a/docker-compose.yml b/docker-compose.yml index 7adcdd54a..e4086acb2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -44,7 +44,7 @@ services: ports: - 3000:3000 environment: - NEXT_PUBLIC_API_BASE_URL: http://localhost1234 + NEXT_PUBLIC_API_BASE_URL: ${NEXT_PUBLIC_API_BASE_URL} NEXT_PUBLIC_GOOGLE_CLIENTID: "0" NEXT_PUBLIC_GITHUB_APP_NAME: "0" NEXT_PUBLIC_GITHUB_ID: "0" @@ -65,19 +65,19 @@ services: DJANGO_SETTINGS_MODULE: plane.settings.production DATABASE_URL: postgres://plane:xyzzyspoon@db:5432/plane REDIS_URL: redis://redis:6379/ - EMAIL_HOST: - EMAIL_HOST_USER: - EMAIL_HOST_PASSWORD: - AWS_REGION: - AWS_ACCESS_KEY_ID: - AWS_SECRET_ACCESS_KEY: - AWS_S3_BUCKET_NAME: + EMAIL_HOST: ${EMAIL_HOST} + EMAIL_HOST_USER: ${EMAIL_HOST_USER} + EMAIL_HOST_PASSWORD: ${EMAIL_HOST_PASSWORD} + AWS_REGION: ${AWS_REGION} + AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID} + AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY} + AWS_S3_BUCKET_NAME: ${AWS_S3_BUCKET_NAME} WEB_URL: localhost/ - GITHUB_CLIENT_SECRET: + GITHUB_CLIENT_SECRET: ${GITHUB_CLIENT_SECRET} DISABLE_COLLECTSTATIC: 1 DOCKERIZED: 1 - OPENAI_API_KEY: 0 - GPT_ENGINE: 0 + OPENAI_API_KEY: ${OPENAI_API_KEY} + GPT_ENGINE: ${GPT_ENGINE} SECRET_KEY: ${SECRET_KEY} depends_on: - db @@ -103,20 +103,20 @@ services: DJANGO_SETTINGS_MODULE: plane.settings.production DATABASE_URL: postgres://plane:xyzzyspoon@db:5432/plane REDIS_URL: redis://redis:6379/ - EMAIL_HOST: - EMAIL_HOST_USER: - EMAIL_HOST_PASSWORD: - AWS_REGION: - AWS_ACCESS_KEY_ID: - AWS_SECRET_ACCESS_KEY: - AWS_S3_BUCKET_NAME: + EMAIL_HOST: ${EMAIL_HOST} + EMAIL_HOST_USER: ${EMAIL_HOST_USER} + EMAIL_HOST_PASSWORD: ${EMAIL_HOST_PASSWORD} + AWS_REGION: ${AWS_REGION} + AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID} + AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY} + AWS_S3_BUCKET_NAME: ${AWS_S3_BUCKET_NAME} WEB_URL: localhost/ - GITHUB_CLIENT_SECRET: + GITHUB_CLIENT_SECRET: ${GITHUB_CLIENT_SECRET} DISABLE_COLLECTSTATIC: 1 DOCKERIZED: 1 - OPENAI_API_KEY: 0 - GPT_ENGINE: 0 - SECRET_KEY: asdasdasdsd + OPENAI_API_KEY: ${OPENAI_API_KEY} + GPT_ENGINE: ${GPT_ENGINE} + SECRET_KEY: ${SECRET_KEY} volumes: pgdata: redisdata: