Update README docker-compose sample
This commit is contained in:
1 parent
25910652f4
commit
8404eb990d
2 files changed
+13
-4
No files matched your search
@@ -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:
|
5. For Docker Compose, create a `docker-compose.yml` file:
|
||||||
```yaml
|
```yaml
|
||||||
services:
|
services:
|
||||||
pterodactyl-bot:
|
pterodisbot:
|
||||||
build: .
|
build: .
|
||||||
container_name: pterodactyl-bot
|
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:
|
volumes:
|
||||||
- ./bot-config:/app
|
- bot_logs:/app/logs
|
||||||
|
- bot_embed:/app/embed
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
bot_logs:
|
||||||
|
bot_embed:
|
||||||
```
|
```
|
||||||
Then run:
|
Then run:
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
@@ -26,7 +26,6 @@ RUN groupadd -r bot && useradd -r -g bot bot
|
|||||||
COPY --chown=bot:bot . .
|
COPY --chown=bot:bot . .
|
||||||
|
|
||||||
# Create directories for persistent storage and modify permissions
|
# Create directories for persistent storage and modify permissions
|
||||||
|
|
||||||
RUN chown -R bot:bot /app && \
|
RUN chown -R bot:bot /app && \
|
||||||
chmod -R 777 /app
|
chmod -R 777 /app
|
||||||
RUN mkdir -p logs && \
|
RUN mkdir -p logs && \
|
||||||
|
|||||||
Reference in new issue
Block a user