Skip to content

Latest commit

 

History

History
89 lines (56 loc) · 1.23 KB

README.md

File metadata and controls

89 lines (56 loc) · 1.23 KB

Tech Stack

Backend: Python, Django, DRF

Infra: Docker-compose

Database: PostgreSQL

Others: Redis, RabbitMQ, Prometheus, NGINX

Deployment

Clone the project

  git clone https://github.com/karthiknarayan07/ecommerce-microservices.git

Go to the project directory

  cd ecommerce-microservices

Go to databases folder

  cd databases

build docker images

  docker compose build

Start all databases

  docker compose up

Go to parent folder to build services

  cd ..

build docker images

  docker compose build

Start all services

  docker compose up

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

NGINX_PORT

PROMETHEUS_PORT

RABBITMQ_PORT RABBITMQ_MANAGEMENT_PORT

REDIS_PORT REDIS_PASSWORD

USERSERVICE_CONTAINER_PORT_1 USERSERVICE_CONTAINER_PORT_2

PRODUCTSERVICE_CONTAINER_PORT_1 PRODUCTSERVICE_CONTAINER_PORT_2

ORDERSERVICE_CONTAINER_PORT_1 ORDERSERVICE_CONTAINER_PORT_2

COMMUNICATIONSERVICE_CONTAINER_PORT_1 COMMUNICATIONSERVICE_CONTAINER_PORT_2

Authors