DevOps Training Session 5: NGINX
Hello, btb today –> i have mission with nginx-webserver if you want to understand nginx –> go for my @xeusnguyen - NGINX and Apache on vietnamese - If you want to english version so don't wrr i will back to another version of that. Enjoy the lab –>
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Setup the docker file and make interaction with
Using the multi-stage for solving that problem –> identify what need to target and build it
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Update: after time for implement –> ajust docker file into 2 file individual –> easy to using with each others
Docker/Dockerfile.web:
Docker/Dockerfile.nginx:
After building complete dockerfile we need to compose it into one for building project with docker-compose
docker-compose.yaml
nginx.conf
And last one, we need onething to run all with bash script
run_setup.sh
try_catch.sh
Oh i missing the web part just use the source code from previous session –> but need to config env to see what dif between the webpage
index.js
package.json
Result





Conclusion
- This is quite easy implement diagram but –> you will diggest into the nginx –> docker –> compose –> network –> nodejs
- Note: don't touch everything about in conf if u don't know. I cost one morning to know wrong include –> ignore default configuration
- So happy implement –> Session 5: Nginx end here –> Next session i will move on the cloud computing –> Azure i think so
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Reference
Multi-stage builds
Copy but ignore some file
Config ssl
Nginx configure example
Nginx –> config with digital ocean
Config env for nginx
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →