Relative Content

Tag Archive for pythondjangodockerdocker-compose

My docker-compose can not run or build, causing issues

I am creating a Django application and now I am creating a docker container for that application. I am using the MySQL database with Django. So after creating my entire project when It was successfully running, I wanted to containerize it. I created the Dockerfile and docker-compose.yml file. Here is the content of my file.

Docker Compose + Django CLI commands: django.core.exceptions.ImproperlyConfigured: Set the DATABASE_URL environment variable

I have a django + vue project built using django cookie cutter with docker. Because I’ve done this with docker, after starting my containers, I can’t use the normal python manage.py command command. I instead get this error message django.core.exceptions.ImproperlyConfigured: Set the DATABASE_URL environment variable. I have searched everywhere to figure out how to fix this but I can’t find anyone with a fix for this.