As of Day 24, we have created a complete CI/CD pipeline for a Node.js application.
Today's task will be very simple.
- In the Execute shell, run the application using Docker compose.
So far, our build step looks like this:
Let's create docker-compose.yml
file in the root of our application.
version: '3.9'
services:
web:
build: .
ports:
- "8000:8000"
Now in Jenkins, update the shell command and save it.
Click-on Build Now.
Your application should now be running at http://localhost:8000.
Thank you for reading😉.