updated .env insertation
This commit is contained in:
16
.env.template
Normal file
16
.env.template
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# Django
|
||||||
|
DJANGO_SETTINGS_MODULE=website.settings
|
||||||
|
DJANGO_SECRET_KEY=CWHZCAZBNV57tDkwGHJwTUu3PCSnGG45
|
||||||
|
DEBUG=TRUE
|
||||||
|
ALLOWED_HOSTS=["test-vps.woutervermeer.com"]
|
||||||
|
|
||||||
|
# Database (PostgreSQL)
|
||||||
|
POSTGRES_DB=app
|
||||||
|
POSTGRES_USER=app
|
||||||
|
POSTGRES_PASSWORD=3yF8g5Bb7XXpNHgcrhwUqYFnPHRlHlIV
|
||||||
|
POSTGRES_HOST=db
|
||||||
|
POSTGRES_PORT=5432
|
||||||
|
|
||||||
|
# Gunicorn
|
||||||
|
GUNICORN_WORKERS=3
|
||||||
|
GUNICORN_TIMEOUT=120
|
||||||
@@ -14,6 +14,10 @@ services:
|
|||||||
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
POSTGRES_PASSWORD: ${DB_PASSWORD}
|
||||||
POSTGRES_HOST: ${DB_HOST}
|
POSTGRES_HOST: ${DB_HOST}
|
||||||
POSTGRES_PORT: ${DB_PORT}
|
POSTGRES_PORT: ${DB_PORT}
|
||||||
|
DEBUG: ${DEBUG}
|
||||||
|
ALLOWED_HOSTS: ${DEBUG}
|
||||||
|
env_file:
|
||||||
|
.env
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
db:
|
db:
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ SECRET_KEY = "django-insecure-c$q7wdq+u@ow74wp!&zzkxdylkueu)(+34e%!e0du&bjwoqz9z
|
|||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
|
|
||||||
ALLOWED_HOSTS = []
|
ALLOWED_HOSTS = ["test-vps.woutervermeer.com"]
|
||||||
|
|
||||||
|
|
||||||
# Application definition
|
# Application definition
|
||||||
|
|||||||
Reference in New Issue
Block a user