Skip to content

harpm/SampleMultiplayerLobbyGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

MultiPlayerLobbyGame

MultiPlayerLobbyGame is Lobby service for online games.

Features

  • Register User
  • Join Lobbies
  • Can be Clustered

Used tools

  • C#/NET
  • ASP.NET
  • Redis
  • Docker

Prerequisites

Before running the application, ensure you have the following installed:

How to Run

Follow these steps to set up and run the application:

  1. Clone the Repository:
    git clone https://github.com/harpm/MultiPlayerLobbyGame.git
    cd Src
  2. Build and Run the Application: Use Docker Compose to build and run the application along with the Redis instance:
docker-compose up --build

This will:

  • Build the MultiPlayerLobbyGame.API Docker image.
  • Start a Redis container.
  • Start 3 instances of the MultiPlayerLobbyGame.API application, all connected to the same Redis instance.
  1. Scaling the Application: If you want to run more instances of the application, you can scale the service using the --scale flag:
docker-compose up --build --scale multiplayerlobbygame-api=5
  1. Access the Application: Once the containers are running, you can access the application at:
    http://localhost:80
    (Replace 80 with the port number if you've customized it in the docker-compose.yml file.)
  2. Stopping the Application: To stop the application and all running containers, use:
    docker-compose down

Configuration

  • Redis Connection: The application connects to Redis using the RedisConnection environment variable, which is set to redis:6379 in the docker-compose.yml file.
  • Environment Variables: You can modify the environment variables in the docker-compose.yml file to customize the application behavior.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages