cookiecutter / cookiecutter-django

Cookiecutter Django is a framework for jumpstarting production-ready Django projects quickly.
https://cookiecutter-django.readthedocs.io
BSD 3-Clause "New" or "Revised" License
12.08k stars 2.89k forks source link

Add Traefik to the Local Docker setup #2665

Open Qoyyuum opened 4 years ago

Qoyyuum commented 4 years ago

Description

Add Traefik to the local.yml for local setup that also includes a user prompt for what has been set in their hosts file for this project. Perhaps provide a default dev.localhost if not provided?

Rationale

Pretty URLs aside, this helps with looking and building multi-tenancy apps (like django-tenant-schemas) but if not, it does look a nice and proper dev environment than using the default localhost:8000. This also avoids the whole port conflict when I already have something running on port 8000.

Use case(s) / visualization(s)

Essentially any SaaS like applications that uses subdomains (perhaps Blogger or Wordpress for reference).

areski commented 3 years ago

Would love to see a PR for that, any work you have done on this @Qoyyuum ?

Qoyyuum commented 3 years ago

Would love to see a PR for that, any work you have done on this @Qoyyuum ?

I have not made any progress on this