Skip to content

This repository provides ready-to-use CI/CD templates for deploying Django applications with PostgreSQL and Redis using Docker and GitLab CI/CD pipelines.

License

Notifications You must be signed in to change notification settings

iranailab/Ci-CD-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CI/CD Template for Django, PostgreSQL, and Redis

Project Logo

This repository provides ready-to-use CI/CD templates for deploying Django applications with PostgreSQL and Redis using Docker and GitLab CI/CD pipelines.

Features

  • Django: Web application framework
  • PostgreSQL: Relational database
  • Redis: In-memory data store
  • Docker Compose: Multi-service orchestration
  • GitLab CI/CD: Automated build, test, and deployment pipeline

Included Files

  • src/docker-compose.yml: Main Docker Compose configuration
  • src/docker-compose.ci.yml: Docker Compose for CI environment
  • src/docker-compose.staging.yml: Docker Compose for staging environment
  • src/Dockerfile: Dockerfile for Django app
  • src/entrypoint.sh: Entrypoint script for Django container
  • src/.gitlab-ci.yml: GitLab CI/CD pipeline configuration

Usage

  1. Clone the repository
    git clone https://github.com/iranailab/Ci-CD-template.git
    cd Ci-CD-template/src
  2. Configure environment variables as needed for your Django, PostgreSQL, and Redis setup.
  3. Build and run locally
    docker-compose up --build
  4. Set up GitLab CI/CD
    • Push your code to a GitLab repository.
    • The .gitlab-ci.yml file will automate build, test, and deployment steps.

Customization

  • Update the Docker Compose files to match your application's requirements.
  • Modify the .gitlab-ci.yml stages for your workflow.

License

This project is licensed under the terms of the LICENSE file in this repository.

Contributing

Pull requests and issues are welcome!

About

This repository provides ready-to-use CI/CD templates for deploying Django applications with PostgreSQL and Redis using Docker and GitLab CI/CD pipelines.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published