diff --git a/README.md b/README.md index ad03be1..1c4dd79 100644 --- a/README.md +++ b/README.md @@ -48,4 +48,4 @@ Enable `log_error` in the `config.yml` file and check the console for the error ## Links - [Pterodactyl Discord Server](https://discord.gg/pterodactyl) - [Pelican Discord Server](https://discord.gg/pelican-panel) -- [Support Server](https://discord.znproject.my.id) \ No newline at end of file +- [Support Server](https://discord.znproject.my.id) diff --git a/docker-compose.yml b/docker-compose.yml index 99a83ae..d0176f4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,13 @@ version: '3.3' services: pterostats: - volumes: - - ./config.yml:/app/config.yml container_name: pterostats image: ghcr.io/hirzidevs/pterostats:latest + restart: always + volumes: + - ./config.yml:/app/config.yml + environment: + - PanelURL= + - PanelKEY= + - DiscordBotToken= + - DiscordChannel= diff --git a/guide/docker.md b/guide/docker.md index 15a65cd..cc7e0c5 100644 --- a/guide/docker.md +++ b/guide/docker.md @@ -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 @@ -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 ``, ``, ``, and `` 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= -e PanelKEY= -e DiscordBotToken= -e DiscordChannel= -v $(pwd)/config.yml:/app/config.yml ghcr.io/hirzidevs/pterostats:latest docker logs -f pterostats -``` \ No newline at end of file +```