preinboth / django-docker-traefik

Django with Docker and Traefik

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dockerizing Django with Postgres, Gunicorn, and Traefik

Want to learn how to build this?

Check out the post.

Want to use this project?

Development

Build the images and spin up the containers:

$ docker-compose up -d --build

Test it out:

  1. http://django.localhost:8008/
  2. http://django.localhost:8081/

Production

Update the domain in docker-compose.prod.yml, and add your email to traefik.prod.toml.

Build the images and run the containers:

$ docker-compose -f docker-compose.prod.yml up -d --build

About

Django with Docker and Traefik

License:MIT License


Languages

Language:Python 95.0%Language:Dockerfile 5.0%