gustavodbs / django-on-docker-letsencrypt

Securing a Containerized Django Application with Let's Encrypt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Securing a Containerized Django Application with Let's Encrypt

Want to learn how to build this?

Check out the post.

Want to use this project?

Let's Encrypt Staging

  1. Rename .env.staging-sample to .env.staging, .env.staging.db-sample to .env.staging.db, and .env.staging.proxy-companion-sample to .env.staging.proxy-companion. Update the environment variables.

  2. Build the images and run the containers:

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

    Test it out.

Let's Encrypt Production

  1. Rename .env.prod-sample to .env.prod, .env.prod.db-sample to .env.prod.db, and .env.prod.proxy-companion-sample to .env.prod.proxy-companion. Update the environment variables.

  2. Build the images and run the containers:

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

    Test it out.

About

Securing a Containerized Django Application with Let's Encrypt

License:MIT License


Languages

Language:Python 81.3%Language:Dockerfile 8.4%Language:Shell 5.8%Language:HTML 4.5%