-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
- Docker engine 18+
- Docker-compose 1.24+
- Create a discord application in https://discord.com/developers/ and get the DISCORD_TOKEN
- Create a
docker-compose.ymlfile 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- 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.