Skip to content

Commit

Permalink
Fix docker doc using new docs
Browse files Browse the repository at this point in the history
  • Loading branch information
PandeoF1 committed Sep 17, 2024
1 parent 9408d7b commit 28194fe
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions guide/docker.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Docker

This is a guide to run the bot using docker (alternative way to run the bot).
This is a guide to run the bot using docker (alternative way to run the bot)

### Installation

Expand All @@ -11,16 +11,20 @@ curl -fsSL https://get.docker.com | sh
### Docker Compose

- Copy the `docker-compose.yml` file to your server and run `docker compose pull`
- Copy the `config.yml` file at the same directory as the `docker-compose.yml` file and configure it (refer to the [Starting the App/Bot](https://github.com/HirziDevs/PteroStats#starting-the-appbot) section)
- Copy the `config.yml` file at the same directory as the `docker-compose.yml` file and configure it
- Fill the environment variables in the `docker-compose.yml` file and run the bot using `docker compose up -d`

```bash
docker compose up -d
docker compose logs -f pterostats
```
```bash
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.yml` file at the same directory where you run the command and configure it

```bash
docker run -d --name pterostats -v $(pwd)/config.yml:/app/config.yml ghcr.io/hirzidevs/pterostats:latest
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
```
```

0 comments on commit 28194fe

Please sign in to comment.