Giter Club home page Giter Club logo

red-discordbot-docker's Introduction

Red-DiscordBot Docker Image

Example

Command

docker build -t redbot .

docker run --rm \
    -e REDBOT_NAME=redbot \
    -e REDBOT_STORAGE_TYPE=JSON \
    -e REDBOT_TOKEN=${REDBOT_TOKEN} \
    -e REDBOT_PREFIX=! \
    -v $PWD/data:/data \
    -it docker.pkg.github.com/park9eon/red-discordbot-docker/redbot:latest

docker-compose.yml

version: "3.8"

services:
  redbot:
    image: docker.pkg.github.com/park9eon/red-discordbot-docker/redbot:latest
    environment:
      REDBOT_NAME: redbot
      REDBOT_STORAGE_TYPE: POSTGRES
      REDBOT_TOKEN: ${REDBOT_TOKEN}
      REDBOT_PREFIX: !
      REDBOT_DB_HOST: postgres
      REDBOT_DB_USER: redbot
      REDBOT_DB_PASS: redbot
      REDBOT_DB_NAME: redbot
    depends_on:
      - postgres

  postgres:
    image: postgres
    environment:
      POSTGRES_PASSWORD: redbot
      POSTGRES_USER: redbot
      POSTGRES_DB: redbot

Environments

  • REDBOT_NAME - App Name
  • REDBOT_STORAGE_TYPE - JSON / POSTGRES / MONGOV1 / MONGO (default: JSON)

if Postgres / MonoDB / MongoDBV2

  • REDBOT_DB_HOST - If blank : PGHOST or localhost
  • REDBOT_DB_PORT - If blank : PGPORT or 5432
  • REDBOT_DB_USER - If blank : PGUSER or The OS name of the user running Red
  • REDBOT_DB_PASS - If blank : PGPASSWORD or Looking up the password in the passfile or No password
  • REDBOT_DB_NAME - If blank : PGDATABASE or The OS name of the user running Red

red-discordbot-docker's People

Contributors

park9eon avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.