Requirements
Check what you need before you install, from a Docker host and local storage to a Discord applicationYour bot's entry in the Discord Developer Portal and optional API keys.
Requirements
- Docker — Run the published
mrjackyliang/discord-stonker-botimage withdocker run, or build it from the repository with Docker Compose. - An amd64 or arm64 machine — The image builds only for these two processor architectures.
- Local storage for the data volumeThe Docker volume where all your data lives — PostgreSQL keeps its files in a Docker volume, and it is recommended to keep that volume on a local disk rather than NFS or SMB.
- The source code (Compose only) — Building with Compose needs a copy of the repository.
- A Discord applicationYour bot's entry in the Discord Developer Portal — You create it in the Discord Developer Portal and copy its Bot TokenThe bot's password for Discord, from the Developer Portal, as described in Discord Application.
- Privileged intentsAn intent you must switch on in the Developer Portal first for your features — Features that read message text or member events need intents you switch on in the Developer Portal.
- Optional reCAPTCHA keys — The invite pageA public page that hands out short-lived Discord invites needs a reCAPTCHAGoogle's checkbox that keeps bots off the invite page v2 site key and secret key.
- Optional alert accounts — Notifications need an account or address on the service they post to, such as an ntfy topic, a Telegram bot, or an SMTP server.
- An HTTPS address for remote use — Secure session cookies and passkeysSign in with Face ID, Touch ID, or a security key need HTTPS and a domain name, or
localhost, as described in Remote Access.
Network and Ports
- Control panel — The web service always listens on every address on port 22604. The supplied
docker runcommand and Compose file use host networking, so it is the container's only open port and is available on every host address. To use another host port, switch to bridge networking and publish the fixed container port, such as"8080:22604". - Database — PostgreSQL listens only on a Unix socket inside the container and opens no TCP port, so nothing outside the container can reach it, even with
--net=host. - IPv6 — Host networking exposes the control panel on the host's IPv6 addresses when IPv6 is enabled. Those addresses are often reachable from the internet, so it is recommended to check that your router or host firewall blocks inbound connections to port 22604.
- Connections to Discord — The bot, the workerBackground service that runs schedules and deliveries, and the invite pageA public page that hands out short-lived Discord invites connect to Discord over the internet.
- Optional connections — The invite pageA public page that hands out short-lived Discord invites connects to Google's reCAPTCHAGoogle's checkbox that keeps bots off the invite page service, and RSS feeds connect to each feed's host over HTTPS.
- Notifications — The workerBackground service that runs schedules and deliveries connects to each notification destinationOne place alerts go, such as a chat, topic, or inbox's service, and the web service does too when you select Send test.
Container Runtime
- Identity — The container starts as root so Nova can prepare ownership and the time zone. s6 then runs PostgreSQL, the bot, the control panel, and the worker as
PUID:PGID, each from 1 through 60000. - Writable state — Persistent app state belongs under
/config/keys/and/config/database/./datais retained only for compatibility with an old state mount and is not new app storage. - Shutdown time — The image's s6 timing values keep the full shutdown inside Docker's default 10-second stop window.
- Restart policy — Docker restarts the container after a stop or failure because the supplied run line and Compose file use
always.
The docker run command uses --restart always.