Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .env

This file was deleted.

13 changes: 12 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
12 changes: 12 additions & 0 deletions production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down