Skip to content

Self hosting using Docker

Agnaldo junior edited this page Jun 1, 2021 · 6 revisions

To deploy the bot using the Docker engine, you need to have it installed

Requisites

  • Docker engine 18+
  • Docker-compose 1.24+

Steps

  1. Create a discord application in https://discord.com/developers/ and get the DISCORD_TOKEN
  2. Create a docker-compose.yml file anywhere to setup the needed images
version: "3.9"

services:
  albion-killbot:
    image: agnjunio/albion-killbot:latest
    depends_on:
      - mongodb
      - rabbitmq
    environment:
      - DISCORD_TOKEN=your discord token here
      - MONGODB_URL=mongodb://mongodb:27017/albion-killbot
      - RABBITMQ_URL=amqp://rabbitmq
    volumes:
      - ./cache:/tmp/albion-killbot-cache

  mongodb:
    image: mongo:latest
    volumes:
      - ./mongodb:/data/db
    expose:
      - 27017

  rabbitmq:
    image: rabbitmq:3
    expose:
      - 5672
  1. In a docker shell, cd to the directory containing the file, and run:
docker-compose up

You can use the -d flag to daemonize and make the bot run in background, but it's recommended to test before doing so.

Clone this wiki locally