nginx:
nginx.conf
has all the settings eg to connect todjango app
, servestatic
andmedia
files. The Dockerfile removesdefault.conf
from/etc/nginx/conf.d/
in the nginx container and replacenginx.conf
in/etc/nginx/
with our/nginx/nginx.conf
from the repo.
static and media:
Our django related stuffs
-
.env.dev
: It hasSECRET_KEY
,DEBUG=1
for development mode, andPOSTGRES
settings. -
.env.prod
: Same settings justDEBUG=0
-
.env.prod.db
: DB settings to be used indocker-compose.prod.yml
for production env.
NOTE: In .env.dev
stick to POSTGRES_HOST=db
as it is, rest you can change as desired or required.
Dockerfile
works in conjuncturedocker-compose.yml
Dockerfile.prod
works in conjuncturedocker-compose.prod.yml