How to Setup Different Environments for Dockerized Angular App with Nginxby@mhlchamara
2,625 reads
2,625 reads

How to Setup Different Environments for Dockerized Angular App with Nginx

by Chamara Liyanage2mJuly 12th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

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.

Coin Mentioned

Mention Thumbnail
featured image - How to Setup Different Environments for Dockerized Angular App with Nginx
Chamara Liyanage HackerNoon profile picture
Chamara Liyanage

Chamara Liyanage

@mhlchamara

Passionate Software Engineering Professional

About @mhlchamara
LEARN MORE ABOUT @MHLCHAMARA'S
EXPERTISE AND PLACE ON THE INTERNET.

Share Your Thoughts

About Author

Chamara Liyanage HackerNoon profile picture
Chamara Liyanage@mhlchamara
Passionate Software Engineering Professional

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
L O A D I N G
. . . comments & more!