Hackernoon logoHow to Setup Different Environments for Dockerized Angular App with Nginx by@mhlchamara

How to Setup Different Environments for Dockerized Angular App with Nginx

The high-level flow is: Dockerize the Angular app, create a template for nginx configurations.Configure the Deployment yaml file and create a nginx configuration file template. Add a command to the deployment yaml to bind the environment variable to the nginx server config. The command is this, ["/bin/sh", "-c", "envsubst "$${API_GW_PASS}" < /etc/nginx/nginx.conf.conf.
image
Chamara Liyanage Hacker Noon profile picture

Chamara Liyanage

Passionate Software Engineering Professional

Tags

Join Hacker Noon

Create your free account to unlock your custom reading experience.