Sign inSign up

rfvgyhn/game-manager

By rfvgyhn

•Updated 6 months ago

Image
0

10K+

rfvgyhn/game-manager repository overview

⁠Docker Game Manager Docker Pulls

Tool to allow your friends to start stopped containers. Useful for when your host charges based on CPU usage. Allows you to turn off your game servers when no players are on but not have to be around when your buddies want to play.

Screenshot

⁠Server Config File

Managed containers need to be specified in a config file.

docker run -d \
           --name game_manager \
           -v $(pwd)/appsettings.json:/app/appsettings.json \
           -v /etc/localtime:/etc/localtime:ro \
           -v /var/run/docker.sock:/var/run/docker.sock:ro \
           rfvgyhn/game-manager

Sample appsettings.json:

{
    "Containers": [
        {
            "DisplayName": "Container1 - Name",
            "DisplayImage": "container1.png",
            "Name": "container_name",
            "Enabled": true,
            "Notes": "Some notes about this container"
        },
        {
            "DisplayName": "Container2 - Name",
            "DisplayImage": "container2.png",
            "Name": "container_name2",
            "Enabled": false
        }
    ],
    "Logging": {
        "LogLevel": {
            "GameManager": "Debug",
            "Default": "Error",
            "System": "Error",
            "Microsoft": "Error"
        }
    }
}
NameTypeDescription
DisplayNamestringThe text that shows up in the card title
DisplayImagestringPath to card image relative to the cards directory
NamestringContainer name as shown by docker ps
EnabledbooleanAllow users to interact with container
NotesstringOptional text that shows up in the card description

⁠Card Images

Each container has support for a custom image. Mount the cards volume in order to add them.

docker run -d \
           --name game_manager \
           -v $(pwd)/appsettings.json:/app/appsettings.json \
           -v $(pwd)/cards:/app/wwwroot/cards \
           -v /etc/localtime:/etc/localtime:ro \
           -v /var/run/docker.sock:/var/run/docker.sock:ro \
           rfvgyhn/game-manager
           

⁠Authorization

This app doesn't support authentication/authorization out of the box. It is highly recommended to run this behind a reverse proxy that takes care of auth for you. Traefik⁠ with Let's Encrypt⁠ + Basic Auth⁠ makes this very simple.

Tag summary

Content type

Image

Digest

sha256:d17b30607…

Size

58.2 MB

Last updated

6 months ago

docker pull rfvgyhn/game-manager