Giter Site home page Giter Site logo

jessestorms / docker_modmailbot Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 38 KB

Modmail bot but it's in Docker now. Actual bot is found at https://github.com/Dragory/modmailbot

License: MIT License

Dockerfile 100.00%
discord-bot docker discord modmail

docker_modmailbot's Introduction

docker_modmailbot

Dragory's modmailbot but in a Docker Container. This repository is just the Dockerfile and the modmailbot as a git module.

All you need to run this is your own config.ini file. Check out Dragory's prerequisites, but disregard installing stuff.

Running the bot

It's pretty easy to run. I'm assuming you have Docker installed and know some basic commandline stuff.

By default; we're gonna be running the latest version. If you (for some reason) need to run an older bot, you can append :<version> to the end of jessestorms/modmailbot (e.g jessestorms/modmailbot:3.6.1). Useful for if you're moving your old setup, or if there's something wrong.

Using Docker run

You should be able to copy paste this. Make sure you have a folder somewhere with config.ini, ./attachments, ./logs and ./db. We're binding these folders so you can access them on your host. You need to have your ./config.ini and ./db bound, otherwise you'll run into issues.

$ docker run -d \
  --name modmail \
  --mount type=bind,source="$(pwd)"/config.ini,target=/bot/config.ini,readonly \
  --mount type=bind,source="$(pwd)"/db,target=/bot/db \
  --mount type=bind,source="$(pwd)"/logs,target=/bot/logs \
  --mount type=bind,source="$(pwd)"/attachments,target=/bot/attachments \
  jessestorms/docker_modmailbot

Stopping the bot is done by running docker stop modmail.

Using docker-compose

This repository has my own compose file, but here's one you can copy-paste easily. You'll need to change the volumes. Save this as a docker-compose.yaml file.

version: '3.7'
services:
  modmail:
    container_name: modmail
    image: "jessestorms/docker_modmailbot"
    restart: unless-stopped
    volumes:
      - /path/to/config.ini:/bot/config.ini:ro
      - /path/to/logs:/bot/logs
      - /path/to/db:/bot/db
      - /path/to/attachments:/bot/attachments

Start the bot using docker-compose up -d, stop the bot using docker-compose down.

Why does this exist?

I prefer using containers over running something and I've got a docker swarm at my disposal. The original repo doesn't really have anything to deploy on using Docker, so I went ahead and made it myself.

Something broken?

If the same thing happens when running the bot normally; then you should probably make an issue on Dragory's repo. Otherwise, make an issue here.

Supported tags

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.