🚀 SocialNet – Lesson 1: Docker

Static web page served from an Nginx container

📌 What's happening?

This page is served from a Docker container running nginx:alpine.

You have successfully:

📊 Container Status

This page is served from a Docker container.

Environment variables (example):

Use curl http://localhost:8080/status to get JSON.

🔧 Docker Commands Used

# 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
            

✅ Verification

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.