Skip to content

Docker run example

Mike DeVita edited this page Jul 28, 2023 · 2 revisions

Purpose

outline how to run the onairdiscordbot using the latest docker image, passing all of the required environment variables into the command.

Just replace each environment variable in the example with the correct value and run this in a docker enabled shell prompt.

Steps

docker run -d \
 -e DISCORD_TOKEN='###_REPLACE_WITH_YOUR_DATA_###' \
 -e DISCORD_CLIENTID='###_REPLACE_WITH_YOUR_DATA_###' \
 -e DISCORD_GUILDID='###_REPLACE_WITH_YOUR_DATA_###' \
 -e DISCORD_OWNER='###_REPLACE_WITH_YOUR_DATA_###' \
 -e DISCORD_CHANNEL='###_REPLACE_WITH_YOUR_DATA_###' \
 -e DISCORD_ONCONNECTNOTICE='###_REPLACE_WITH_YOUR_DATA_###' \
 -e DISCORD_DEPLOYCOMMANDS='###_REPLACE_WITH_YOUR_DATA_###' \
 -e ONAIR_COMPANYID='###_REPLACE_WITH_YOUR_DATA_###' \
 -e ONAIR_VAID='true' \
 -e ONAIR_APIKEY='true' \
 -e LOGLEVEL='info' \
 -e LOG_TO_CONSOLE='true' \
 mikedevita/onairdiscordbot:latest

Clone this wiki locally