A simple example of running an Angular application with NGINX and Docker
To access the application over ssl we need to create a self signed SSL certificate. In the app nginx folder run the following command:
openssl req -newkey rsa:2048 -nodes -keyout localhost.key -x509 -days 365 -out localhost.crt
Make sure you have two new files in your nginx dir
- Make sure you have Docker installed from Docker Official Page
- In your app root directory run the following command
docker-compose build
- In your app root directory run the following command
docker-compose up