Skip to content

Commit

Permalink
add docker compose example
Browse files Browse the repository at this point in the history
  • Loading branch information
zefanjajobse committed Nov 30, 2024
1 parent 7b91f06 commit 9f51cd0
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,30 @@

A Discord bot to check the status of your server in different gamedig supported games, as requested by [onemanarmy](https://www.superinfantryclan.com/)

set the config to the correct info in a config.txt next to this executable to use:

## Using the bot

You can run it with Docker (Docker Compose):

```docker
services:
ace-bot-1:
image: ghcr.io/community-network/gamedig-bot/server-bot-rust:latest
restart: always
environment:
- token=TOKEN
- game=rust
- server_ip=194.163.156.99
- server_port=28016
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:3030/"]
interval: "60s"
timeout: "3s"
start_period: "5s"
retries: 3
```

or set the config to the correct info in a config.txt next to this executable to use:

```yaml
# discord bot token
Expand All @@ -13,4 +36,4 @@ game = 'rust'
server_ip = '194.163.156.99'
# and queryport
server_port = 28016
```
```

0 comments on commit 9f51cd0

Please sign in to comment.