This repository contains a boilerplate to start any Django project with Docker.
Docker Installation:
- You can find the instructions here to install Docker.
- Please make sure that Docker is running (in the background) before you use the commands related to Docker.
Steps:
- Clone/download this repository.
- Create a virtual environment using the command
python3 -m venv .venv
; activate the virtual environment usingsource .venv/bin/activate
. - Run
pip install -r requirements.txt
to install dependencies. - Deactivate the virtual environment using
deactivate
in the terminal. - Configure your environment variables in docker-compose.yml file
- Run
docker-compose up -d --build
to install the dependencies in Docker container. - Run
docker-compose exec web python manage.py rename <currentprojectname> <newprojectname>
This project includes:
- Setting module with env variables.
- docker-compose.yml for env variables and Dockerfile
Project Structure: