Skip to content

Files

Latest commit

0014de5 · Jul 6, 2022

History

History
57 lines (50 loc) · 1.47 KB

README.md

File metadata and controls

57 lines (50 loc) · 1.47 KB

Introduction

SafeBox is a discord bot. It uses Node JS as runtime and it's self containered inside Docker.

How to use

Define a file called .env like this:

# Discord configuration
CLIENT_ID=
GUILD_ID=
DISCORD_TOKEN=

# MongoDB credentials
MONGO_INITDB_ROOT_USERNAME=
MONGO_INITDB_ROOT_PASSWORD=
MONGO_INITDB_URL=

Define a file called compose.yaml like this:

services:
  bot:
    image: tommy03/safebox
    volumes:
      - bot:/bot
    env_file:
      - .env
  mongodb:
    image: mongo
    volumes:
      - configdb:/data/configdb
      - db:/data/db
    restart: always
    ports:
      - 27017:27017
    env_file:
      - .env

volumes:
  bot:
  db:
  configdb:

networks:
  front-tier: {}
  back-tier: {}

This is needed to deploy the bot correctly (make sure to set these variables).

Start the bot like this: docker compose up -d

License

FOSSA Status