From 07ddbb793ec311bb7624eb4f5e999830d6993064 Mon Sep 17 00:00:00 2001 From: Marc Koch Date: Wed, 25 Jun 2025 17:02:50 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20configure=20application=20enviro?= =?UTF-8?q?nment=20variables?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sets up environment variables within the docker-compose file, replacing the use of a .env file. This includes defining variables for Django secret key, allowed hosts, SMTP settings, and sender name. This change improves configuration management and clarifies the necessary environment settings. --- docker-compose.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 9af0575..3958406 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,7 +1,6 @@ --- services: app: - image: git.extrasolar.space/marc/room-booking.git:latest build: context: . dockerfile: Dockerfile @@ -9,7 +8,14 @@ services: - "8000:8000" volumes: - app-data:/data - env_file: .env + environment: + - DJANGO_SECRET_KEY=A_VERY_SECRETKEY_KEY # adjust this + - DJANGO_ALLOWED_HOSTS=www.example.org # adjust this (comma-separated list of allowed hosts) + - SMTP_EMAIL=room-booking@example.org # adjust this + - SMTP_PASSWORD=YOUR_SMTP_PASSWORD # adjust this + - SMTP_SERVER=your.smtp.server # adjust this + - SMTP_PORT=587 # adjust this if necessary + - SMTP_SENDER_NAME=Room Booking System # adjust this if you want volumes: app-data: \ No newline at end of file