Docker-Compose for Multi-Container Applications

The Need

  • Build Arguments
  • Ports
  • Environment Variables
  • Volumes
  1. Containerise Asp.NET 5.0 API
  2. Containerise React Apps Hosted by Asp.NET 5.0
  3. Use Docker-Compose to Run a Multi-Container Application
  4. Setup Minikube for Asp.NET APIs and React Apps
  5. Kubernetes with Asp.NET, React and Azure DevOps



End Result

1. Services

2. Apps/APIs

  • Web App: a react app which serves as the front-end of my application.
  • Identity API: an Identity API to take care of Identity functions
  • Subscription API: a Subscription API to manage plans and payments
  • Messaging API: a Messaging API to take care of comms with clients
  • Location API: a Location API to provide location data such as countries, cities, etc.

3. Image

4. Build

5. Ports

6. Environment Variables

7. Volumes

Build and Run

docker-compose up
docker-compose build

Pellerex: Infrastructure Foundation for Your Next Enterprise Software




Software Engineer at

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Insomnia Client & XeroAPI Auth

Six Reasons Agile Teams Deliver Frequently And Why It Matters

Top 9 Benefits of Legal Case Management Software

Salesforce Asynchronous Apex Future Method

How we manage UI states in Android

Creating an Auto-Scaling Group and EC2 Instances in AWS

Laravel: Hooking into Artisan Commands

Pain Reliever— Context manager and Encoding detector in Python

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Mahdi Karimipour

Mahdi Karimipour

Software Engineer at

More from Medium

Access Oracle Database XE via Docker

Code Generation; the Nuclear power of programming!

Dev IRL: How to setup a simple and convenient logging system for your Node application?

How to use config files for npm scripts