Skip to content

03.5 Dev with docker‐compose

Vincent Fabre edited this page Sep 13, 2023 · 2 revisions

Dev mode with nginx

Before actual deployment, test your configurations with the file docker-compose.dev.yml

for that a few settings:

.env

DEBUG=0 # so django's dev server wont run and nginx will handle the statics
DOMAIN=localhost
USE_POSTGRES=1
  • Edit the nginx dev config if needed: in configs/dev_proxy/default.conf.tpl

  • launch with:

docker-compose -f docker-compose.dev.yml up
  • Chek the result at http://0.0.0.0:80