From 565e494707ab5f3cee189a63397401d911da8f71 Mon Sep 17 00:00:00 2001 From: Adibov Date: Wed, 29 Nov 2023 01:43:32 +0330 Subject: [PATCH] chore(compose): pass envs to docker compose on starting --- .github/workflows/deploy.yaml | 4 ++-- backend/.dockerignore | 3 ++- docker-compose.yml | 4 ++++ frontend/.dockerignore | 3 ++- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index e7a81c4..0e92723 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -2,8 +2,8 @@ name: Deploy on: push: - branches: - - master +# branches: +# - master jobs: build-and-push: diff --git a/backend/.dockerignore b/backend/.dockerignore index e4ea643..99f469b 100644 --- a/backend/.dockerignore +++ b/backend/.dockerignore @@ -1,4 +1,5 @@ .git data media -static \ No newline at end of file +static +.env \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index f93fab2..f0ebe56 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -21,6 +21,10 @@ services: cache_from: - aaissaut/aaiss:backend command: gunicorn aaiss_backend.wsgi:application --bind 0.0.0.0:6446 + environment: + SECRET_KEY: ${BACKEND_SECRET_KEY} + EMAIL_HOST_PASSWORD: ${EMAIL_HOST_PASSWORD} + ZIFY_AUTH: ${ZIFY_AUTH} volumes: - ./backend/data:/backend-aaiss/data - ./backend/static:/backend-aaiss/static diff --git a/frontend/.dockerignore b/frontend/.dockerignore index c4e72ca..7eadf43 100644 --- a/frontend/.dockerignore +++ b/frontend/.dockerignore @@ -2,4 +2,5 @@ .gitignore README.md dist -node_modules \ No newline at end of file +node_modules +.env \ No newline at end of file