Static web page served from an Nginx container
This page is served from a Docker container running nginx:alpine.
You have successfully:
curl localhost:8080 or browserThis page is served from a Docker container.
Environment variables (example):
Use curl http://localhost:8080/status to get JSON.
# Build the image
docker build -t socialnet-web:latest -f Dockerfile .
# Run the container
docker run -d --name web-app -p 8080:80 socialnet-web:latest
# Check running containers
docker ps
# View logs
docker logs web-app
# Stop and remove
docker stop web-app
docker rm web-app
If you can see this page, your Docker environment is working correctly.
🎉 Congratulations! You've completed Lesson 1.
Next step: Proceed to Lesson 2 (Terraform) to provision GCP infrastructure.