From 8404eb990d12a294fc4a344480189fbf3b67d826 Mon Sep 17 00:00:00 2001 From: "k.eaven" Date: Wed, 13 Aug 2025 01:47:01 -0700 Subject: [PATCH] Update README docker-compose sample --- README.md | 22 ++++++++++++++++------ dockerfile | 1 - 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index d8ed7cd..b62fe36 100644 --- a/README.md +++ b/README.md @@ -112,12 +112,22 @@ The system uses aiohttp for asynchronous HTTP requests and discord.py for Discor 5. For Docker Compose, create a `docker-compose.yml` file: ```yaml services: - pterodactyl-bot: - build: . - container_name: pterodactyl-bot - volumes: - - ./bot-config:/app - restart: unless-stopped + pterodisbot: + build: . + environment: + - DISCORD_TOKEN={Your Discord bot token} + - ALLOWED_GUILD_ID={The Discord server ID where the bot should operate} + - PANEL_URL={Your Pterodactyl panel URL (must include http:// or https://)} + - CLIENT_API_KEY={Pterodactyl client API key (starts with `ptlc_`)} + - APPLICATION_API_KEY={Pterodactyl application API key (starts with `ptla_`)} + volumes: + - bot_logs:/app/logs + - bot_embed:/app/embed + restart: unless-stopped + + volumes: + bot_logs: + bot_embed: ``` Then run: ```bash diff --git a/dockerfile b/dockerfile index 5de02b9..f179917 100644 --- a/dockerfile +++ b/dockerfile @@ -26,7 +26,6 @@ RUN groupadd -r bot && useradd -r -g bot bot COPY --chown=bot:bot . . # Create directories for persistent storage and modify permissions - RUN chown -R bot:bot /app && \ chmod -R 777 /app RUN mkdir -p logs && \