Django docker-compose-prod isn’t work correctly

  django, docker, python, security, web

I’m trying to prep a Django application for production. I created an alternate docker-compose YML file where I specify DEBUG=False. However when I run the Django check for deployment, it says that DEBUG is set to True.

$ docker-compose down
$ docker-compose -f docker-compose-prod.yml up -d --build
$ docker-compose exec web python check --deploy

but in local server was worked(I mean the debug is Turn off)
How can I fix it?

Source: Docker Questions