Deploy with Docker
This tutorial will guide you through the process of deploying discordgsm using Docker.
Before deployment, you need to prepare the following item(s).
- Docker
- Docker Compose (Optional)
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
- docker pull discordgsm/discord-game-server-monitor:latest
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 ;
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.
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.
- docker-compose.ymlversion: '3.8'
services:
discord-game-server-monitor:
image: discordgsm/discord-game-server-monitor:latest
command: python main.py
environment:
- APP_TOKEN=
- WHITELIST_GUILDS=
volumes:
- ./data:/usr/src/app/data
restart: always