Skip to content

overdoseparsa/Django-Ci-CD

Repository files navigation

Project Technical Roadmap

Overview

Project Name: Django CI/CD with Advanced Proxy Stack
Current Phase: Implementation & Hardening Target Architecture:

Core Stack

Component Technology Purpose
Reverse Proxy Traefik Routing, Load Balancing, SSL
Web Servers Nginx (x3) Static Content, Upstream
Security Layer Cloudflare DDoS Protection, CDN, WAF
Containerization Docker Environment Isolation
Orchestration DockerCompose Multi-Container Management
RemoteBashproxy Bash auto configuration From traefick

Current Implementation Status

✅ Completed

  • Traefik base configuration
  • Multi-container Nginx setup
  • Basic routing rules
  • Docker network isolation (Cicd_network)

🛠 In Progress

  • Cloudflare proxy integration
  • SSL/TLS termination (Let's Encrypt)
  • Security headers hardening
  • Creating the REMOTE from ReveseProxy from traefik

✅ Configure The django with Reveseproxy

Technical Decisions

Traefik Configuration

# Selected Approach: ReusePort
entryPoints:
  web:
    address: ":80"
    reusePort: true  # Better for horizontal scaling
### remote traefik Configuration 
```Overview 
Listen in 8932/tcp 
``` bash 

function down(){
 echo sed -i "s/reuseport=ture/reuseport=false/"  /traefik.config.ymal  
}
function main (){
 # create the remote from  trafic Altraiton 
 if [-z $1]:
	down	 	
}
or if we need we use the service but it is in progesss 


### DJANGO  
| network is web_net in docker compose 

|django   
|postgress
### for django we have to altration in docker file 
``` creating the sample dockeFile test for django Production 

we have Workdir 
/usr/src/app
django_conf:/usr/src/app 
django_logs:/usr/path/logs/ 

and volumes my local source in my container

we have access to the django logs

Django config

Component IS_DONE Purpose
Reverse Proxy TRUE create the doc

Django Style gune

remove django the add the django cookiecutter

python3 -m  install  --no-dir-cache  cookiecutter -U

cookiecutter  https://github.com/amirbahador-hub/django_style_guide.git

style

tree -f 


├── ./docker
│   ├── ./docker/beats_entrypoint.sh
│   ├── ./docker/celery_entrypoint.sh
│   ├── ./docker/local.Dockerfile
│   ├── ./docker/production.Dockerfile
│   └── ./docker/web_entrypoint.sh
├── ./docker-compose.dev.yml
├── ./docker-compose.yml
├── ./LICENSE
├── ./manage.py
├── ./markdown_tools
│   └── ./markdown_tools/toc.py
├── ./mypy.ini
├── ./Procfile
├── ./pytest.ini
├── ./README.md
├── ./requirements
├── ./requirements_dev.txt
├── ./requirements.txt
├── ./runtime.txt
├── ./scripts
│
├── ./setup.cfg
└── ./wait-for-it.sh

From next step

we add the repositories to create the django configration and we will compine to this repro 

git@github.com:overdoseparsa/Neutrino.git

some architecture ...

About

The django CI CD configuration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published