Skip to content

Example of serving an angular app with NGINX and Docker

Notifications You must be signed in to change notification settings

ryan-buckman/angular-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Running Angular with NGINX and Docker over ssl

A simple example of running an Angular application with NGINX and Docker

Technologies

SSL Setup

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

Quick Start

  1. Make sure you have Docker installed from Docker Official Page
  2. In your app root directory run the following command docker-compose build
  3. In your app root directory run the following command docker-compose up

About

Example of serving an angular app with NGINX and Docker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published