Skip to content

atulkamble/pong-game

Repository files navigation

🏓 Pong Game

A Simple Pong Game built using HTML, CSS, and JavaScript, containerized with Docker.

📸 Screenshot

Pong Game


📦 Features

  • Classic Pong gameplay in the browser 🎮
  • Lightweight, responsive, and easy to run locally or via Docker
  • Simple and clean codebase for learning or customization

📂 Project Setup

🔻 Clone the Repository

git clone https://github.com/atulkamble/pong-game.git
cd pong-game

📌 Clean Reinstall of Docker Compose on Amazon Linux / EC2

1️⃣ Remove old docker-compose if it exists:

sudo rm -f /usr/local/bin/docker-compose

2️⃣ Install Docker Compose V2 plugin:

If Docker is already installed:

sudo mkdir -p /usr/local/lib/docker/cli-plugins
sudo curl -SL https://github.com/docker/compose/releases/download/v2.27.0/docker-compose-linux-x86_64 -o /usr/local/lib/docker/cli-plugins/docker-compose
sudo chmod +x /usr/local/lib/docker/cli-plugins/docker-compose

Check for the latest release here.


3️⃣ Verify installation:

docker compose version

Notice — with V2 it’s docker compose (space) not docker-compose (hyphen) anymore.


🐳 Docker Commands

📦 Build the Docker Image

docker build -t atuljkamble/pong-game .

📤 Push the Docker Image (optional)

docker push atuljkamble/pong-game

📥 Pull the Docker Image

docker pull atuljkamble/pong-game

🚀 Run the Docker Container

docker run -d -p 80:80 atuljkamble/pong-game

🌐 Access the Game

Open your browser and visit: http://localhost/

Platform-specific browser open commands:

# Linux
xdg-open http://localhost/

# macOS
open http://localhost/

# Windows (Powershell)
start http://localhost/

📑 Docker Compose Commands

# Build and start the containers
docker-compose up --build

# Build and start in detached mode
sudo docker-compose up --build -d

# Stop the containers
docker-compose stop

# Stop and remove containers, networks, and volumes
docker-compose down

📜 License

This project is licensed under the MIT License.


👨‍💻 Author

Atul Kamble


🙌 Contributing

Contributions are welcome! Feel free to open issues or submit pull requests to improve this project.

About

07-07-2025 | A Simple Pong Game | HTML, CSS, and JavaScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published