diff --git a/.env b/.env deleted file mode 100644 index a2d402c..0000000 --- a/.env +++ /dev/null @@ -1,9 +0,0 @@ -# Add Environment Variables - - -SECRET_KEY=5(15ds+i2+%ik6z&!yer+ga9m=e%jcqiz_5wszg)r-z!2--b2d -DB_NAME=postgres -DB_USER=postgres -DB_PASS=postgres -DB_SERVICE=postgres -DB_PORT=5432 \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 35238e5..4227052 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,9 +9,14 @@ web: volumes: - /usr/src/app - /usr/src/app/static - env_file: .env environment: DEBUG: 'true' + SECRET_KEY: '5(15ds+i2+%ik6z&!yer+ga9m=e%jcqiz_5wszg)r-z!2--b2d' + DB_NAME: postgres + DB_USER: postgres + DB_PASS: postgres + DB_SERVICE: postgres + DB_PORT: 5432 command: /usr/local/bin/gunicorn docker_django.wsgi:application -w 2 -b :8000 nginx: @@ -33,6 +38,12 @@ postgres: - "5432:5432" volumes: - pgdata:/var/lib/postgresql/data/ + environment: + DB_NAME: postgres + DB_USER: postgres + DB_PASS: postgres + DB_SERVICE: postgres + DB_PORT: 5432 redis: restart: always diff --git a/production.yml b/production.yml index 6c1366e..95e4b7d 100644 --- a/production.yml +++ b/production.yml @@ -6,6 +6,12 @@ web: links: - postgres:postgres - redis:redis + environment: + DEBUG: 'False' + SECRET_KEY: '5(15ds+i2+%ik6z&!yer+ga9m=e%jcqiz_5wszg)r-z!2--b2d' + DB_NAME: postgres + DB_USER: postgres + DB_PASS: postgres volumes: - /usr/src/app/static env_file: .env @@ -30,6 +36,12 @@ postgres: - "5432" volumes: - pgdata:/var/lib/postgresql/data/ + environment: + DB_NAME: postgres + DB_USER: postgres + DB_PASS: postgres + DB_SERVICE: postgres + DB_PORT: 5432 redis: restart: always