Deploy with Docker

This tutorial will guide you through the process of deploying discordgsm using Docker.

Requirements

Before deployment, you need to prepare the following item(s).

  • Docker
  • Docker Compose (Optional)
Get Started

This tutorial will pull the image from a registry and create and start the container.

Docker Hub: https://hub.docker.com/r/discordgsm/discord-game-server-monitor

GitHub's Docker Registry: https://github.com/DiscordGSM/GameServerMonitor/pkgs/container/discord-game-server-monitor

1. Pull the image from a registry

2. Create and start container

The example below start the container with discord bot.

Edit the <APP_TOKEN> as the Discord Bot Token. Learn more: Tutorial: How to Get a Discord Bot Token

Edit the <WHITELIST_GUILDS> as the Discord Guild ID, if more than one, separate with ;

docker run -d --name discord-game-server-monitor --restart=always -v discord-game-server-monitor-data:/usr/src/app/data -e APP_TOKEN=<APP_TOKEN> -e WHITELIST_GUILDS=<WHITELIST_GUILDS> discordgsm/discord-game-server-monitor:latest python main.py

3. Add the bot your server

View the console output and click the bot invite link to add the bot to your server.

4. Congratulations! 🎉

DiscordGSM has deployed.

Create with docker-compose.yml

The following YAML code is an example of the discordgsm bot's configuration file. You may need to edit the file according to your requirements.