mirror of
https://github.com/HirziDevs/PteroStats
synced 2025-12-23 06:15:44 +00:00
1.0 KiB
1.0 KiB
Docker
This is a guide to run the bot using docker (alternative way to run the bot)
Installation
curl -fsSL https://get.docker.com | sh
Docker Compose
- Copy the
docker-compose.ymlfile to your server and rundocker compose pull - Copy the
config.ymlfile at the same directory as thedocker-compose.ymlfile and configure it - Fill the environment variables in the
docker-compose.ymlfile and run the bot usingdocker compose up -d
docker compose up -d
docker compose logs -f pterostats
Docker Run
- Replace the
<PanelURL>,<PanelKEY>,<DISCORD_BOT_TOKEN>, and<DISCORD_CHANNEL_ID>with your own values in the command below - Copy the
config.ymlfile at the same directory where you run the command and configure it
docker run -d --name pterostats -e PanelURL=<PanelURL> -e PanelKEY=<PanelKEY> -e DiscordBotToken=<DISCORD_BOT_TOKEN> -e DiscordChannel=<DISCORD_CHANNEL_ID> -v $(pwd)/config.yml:/app/config.yml ghcr.io/hirzidevs/pterostats:latest
docker logs -f pterostats