docker_compose for self-contained kyb3r/modmail
linux, docker, docker-compose, cookiecutter
go to a place where all the data can go and run sudo cookiecutter https://github.com/laundmo/modmail_docker
and make sure to provide all things it asks for
if you ever want to stop or restart the bot, cd
into the folder it created and run the command docker-compose down
for shutting it down and docker-compose up -d
for starting it
Variable Name | example | explanation |
---|---|---|
project_slug |
modmail_docker |
The name of the folder which contains all relevant data |
bot_token |
ewHaSdeEasd.1jhj0sD8ksd.0192asmLkoXsbjn3x |
The discord bot token, acquired from discord |
domain_or_ip_on_which_the_logviewer_will_be_avaliable |
https://logviewer.example.com or http://127.212.105.86:8083 |
This is the domain or IP which is going to be used to acces the logviewer. If its a domain, it needs to be reverse proxied from the local_port_for_logview |
guild_id | 6876873659762398 |
This is the discord guild id, in discord, enable developer mode and right click on the guild, then click "Copy ID". |
comma_seperated_owner_ids |
6094325993257,963450932469056 |
These are the owner ids, copied by right clicking the user with developer mode on. Owners have full acceess to the bot. |
new_mongodb_password |
Dkbi5vcqiAjBzv |
A random password, only used internally or if manual access to the database is required. |
local_port_for_logview |
8083 |
This is the port that the logviewer webserver runs on, its adviced to reverse_proxy this to a proper domain. |