updated .env insertation

This commit is contained in:
WGAVermeer
2026-03-06 18:16:21 +01:00
parent 9b57180e20
commit 5160a06aa2
3 changed files with 21 additions and 1 deletions

16
.env.template Normal file
View 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

View File

@@ -14,6 +14,10 @@ services:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_HOST: ${DB_HOST}
POSTGRES_PORT: ${DB_PORT}
DEBUG: ${DEBUG}
ALLOWED_HOSTS: ${DEBUG}
env_file:
.env
restart: unless-stopped
db:

View File

@@ -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!
DEBUG = True
ALLOWED_HOSTS = []
ALLOWED_HOSTS = ["test-vps.woutervermeer.com"]
# Application definition