Project Solution: Running the App
Explore how to launch and manage a scalable quiz application using Docker Compose. Learn to run the app in development mode with live reloading, access containers via IP addresses, debug Node.js, and deploy in production mode with isolated services. Understand cleanup commands to remove containers, images, and volumes to maintain a clean Docker environment.
We'll cover the following...
We'll cover the following...
Launch in development mode
Launch the quiz in development mode with auto-building, source maps, and application restarts using the docker-compose.yml configuration in the ./usercode project root:
cd quiz
docker-compose up
The application is accessible via NGINX at http://{nginx_container_IP}:80.
Additionally, you can access:
- The Node.js application directly at port
http://{nodejs_container_IP}:8000. - The Node.js debugger at port
{nodejs_container_IP}:9229.
You can find the container’s IP using: ...