From 9de7dc664797cf652bfc7505f32e29a03506ba3a Mon Sep 17 00:00:00 2001 From: pedro Date: Thu, 31 Oct 2024 11:54:41 +0100 Subject: [PATCH] docker: disable debug by default --- .env.example | 2 +- docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 37ed087..0f7e6d0 100644 --- a/.env.example +++ b/.env.example @@ -1,11 +1,11 @@ DOMAIN=localhost +# note that DEBUG=true make snapshot parsing more verbose DEMO=false STATIC_ROOT=/tmp/static/ MEDIA_ROOT=/tmp/media/ ALLOWED_HOSTS=localhost,localhost:8000,127.0.0.1, DOMAIN=localhost -DEBUG=True EMAIL_HOST="mail.example.org" EMAIL_HOST_USER="fillme_noreply" EMAIL_HOST_PASSWORD="fillme_passwd" diff --git a/docker-compose.yml b/docker-compose.yml index d376313..9b82d7d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,7 @@ services: build: dockerfile: docker/devicehub-django.Dockerfile environment: - - DEBUG=true + - DEBUG=${DEBUG:-false} - DOMAIN=${DOMAIN:-localhost} - ALLOWED_HOSTS=${ALLOWED_HOSTS:-$DOMAIN} - DEMO=${DEMO:-false}