Dockerizing an Angular application with Nodejs Postgres and NginX | dev and prod | step by step

In this tutorial we are going to create a multicontainer application which will be running in docker containers. We will create both the development and production version of Docker files. Locally we will use a docker-compose file that will run the backend, front-end, postgres and nginx proxy. And you will be able to start the whole construction with one command. For front-end we’re going to use Angular, for backend we are going to use and we are going to use Postgres to store the data in the database. We are going to use Nginx for 2 purposes, we will use it as a router in front-of our front-end and express server, and also we will use Nginx as a HTTP server which will serve our builded React front-end code. Starting code: You can find the final source code here:
Back to Top