Skip to content

Team-Manbo/Manbo-v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guideline

docker cli

twilight

docker build -f Dockerfile . --tag core:twilight --no-cache docker run --rm -d -p 6972:80 --env-file .env --name twilight core:twilight

jobs

docker build -f Dockerfile . --tag core:jobs --no-cache docker run --rm -d -p 6974:6974 --env-file .env --name jobs --link redis:redis --link postgres:postgres --net database_default --env docker=true --env version=v2 core:jobs

bot

docker build -f Dockerfile . --tag core:bot --no-cache

  • no1:

docker run --rm -d -p 7777:7777 --env-file .env --name bot1 --link redis:redis --link postgres:postgres --net database_default --env docker=true --env uuid=no1 --env version=v2 core:bot

  • no2:

docker run --rm -d -p 7777:7777 --env-file .env --name bot2 --link redis:redis --link postgres:postgres --net database_default --env docker=true --env uuid=no2 --env version==v2 core:bot

database

docker compose up --build --no-cache

docker compose up -d

lavalink

docker pull fredboat/lavalink

docker run --rm -d -p 3333:3333 -v application.yml:/opt/Lavalink/application.yml --name lavalink fredboat/lavalink:latest

docker

docker image ls

docker system df

docker system prune (-a)

  • remove errored image

docker rmi $(docker images -f "dangling=true" -q)



How to setup docker

1. launch database (redis / postgres)

2. Launch twilight (if needed)

  • Set USE_TWILIGHT to true in bot's env file

  • SET USE_TWILIGHT to true in job's env file

  • If you set USE_TWILIGHT to true, also set TWILIGHT_HOST and TWILIGHT_PORT

  • If not, just ignore this whole path

  • Check Dockerfile setting

  • Run docker run blabla

3. Launch Jobs (Websocket Server and etc)

4. Launch App (Websocket Client, Discord Application, etc)

Building your own twilight

  • For non-metrics twilight-http-proxy, execute

  • cargo build --release and

  • BOT_TOKEN="your bot token" PORT="port to expose, see Dockerfile" ./target/release/twilight-http-proxy

  • For metrics twilight-http-proxy, execute

  • cargo build --release --features expose-metrics and

  • BOT_TOKEN="your bot token" PORT="port to expose, see Dockerfile" ./target/release/twilight-http-proxy

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published