Skip to content

This pet project contains the api for ridesharing business e,g from requesting a ride to ending a trip. This app communicates with Golang service ride-sharing-processor for core ridesharing businesses. Tech stack: C#, ASP.NET Core, PostgreSQL, Docker, Nginx

Notifications You must be signed in to change notification settings

sayeed1999/Move-Bangladesh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Compose Deployment

Table of Contents

Prerequisites

Before you begin, ensure you have the following installed & running properly on your server:

  • Docker Desktop
  • WSL (Windows Subsystem for Linux) if the server OS is Windows

Setting Up the Project

Set Environment Variables for Docker Compose

The docker-compose.yml file requires proper environment variables set before execution.

Following the .env.example file, create another file .env in the same directory, and set proper values. DO NOT expose them!

Running the Containers

Create External Docker Network

Create an external network to share between different compose files: -

docker network create ridesharing-shared-net

Run Multi-Docker Compose files

Open Terminal from project /docker directory and run the following command to run all containers in detached mode:

docker compose -f docker-compose.postgres.yml -f docker-compose.rabbitmq.yml -f docker-compose.redis.yml -f docker-compose.dev.yml -f docker-compose.nginx.yml up -d

Usage

Access APIs

  • Access MoveBangladesh Customer API through http://localhost:5000/customer-api/. GET http://localhost:5000/customer-api returns MoveBangladesh.CustomerAPI is running message.
  • Access MoveBangladesh Authentication API through http://localhost:5000/auth-api/. GET http://localhost:5000/auth-api/ returns MoveBangladesh.AuthenticationAPI is running message.

Access MailHog

  • Access Local MailHog Server through http://localhost:8025(only for dev env).

Destroying the Containers

Run the following command to destroy all containers:

docker compose
  -f docker-compose.postgres.yml
  -f docker-compose.rabbitmq.yml
  -f docker-compose.redis.yml
  -f docker-compose.dev.yml
  -f docker-compose.nginx.yml down

Other Docs

Head to other deployment readme files: -

References

To learn more about each of these topics, head to the following documentations:-

About

This pet project contains the api for ridesharing business e,g from requesting a ride to ending a trip. This app communicates with Golang service ride-sharing-processor for core ridesharing businesses. Tech stack: C#, ASP.NET Core, PostgreSQL, Docker, Nginx

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •