DuckBoss / JJMumbleBot

A plugin-based All-In-One mumble bot solution in python 3.7+ with extensive features and support for custom plugins.
GNU General Public License v3.0
50 stars 10 forks source link

[Wiki]Add docker-compose .yml launch config #339

Closed sethidden closed 2 years ago

sethidden commented 3 years ago

Post any issues with the wiki here -

This may include:

It'd be nice to add docker-compose .yml to https://duckboss.github.io/JJMumbleBot/wiki/general/docker.html

There's already the below snippet:

Minimal run command using docker-compose (with environment variables for IP/Port/Password):
sudo -E docker-compose run -e MUMBLE_IP -e MUMBLE_PORT -e MUMBLE_PASSWORD bot -generatecert -username 'bot_username' -superuser 'superuser_username'
Minimal run command using docker-compose (no environment variables):
sudo docker-compose run bot -generatecert -ip 'server_ip' -port 'server_port' -username 'bot_username' -superuser 'superuser_username'

But I think most people use the docker-compose with a docker-compose.yml file where they have other services like Nextcloud, Jellyfin etc and the docs don't provide a snippet that can be included in a docker-compose.yml file

I actually made one that works for me (please if someone can test):

version: "3.5"
  services:
    jjmumblebot:
      image: jasonjerome/jjmumblebot
      network_mode: host
      command: -generatecert -ip 'server_ip'  -port 'server_port' -username 'bot_username' -superuser 'superuser_username'

I think it's important to add the .yml file. One could say its trivial to create a docker-compose.yml file based on the docker run command from the docs using eg. www.composerize.com but that website doesn't understand the stuff that's in the command: property above and returns 'true'

Plus it's the first time I actually see -generatecert etc. launch commands being used :P

sethidden commented 3 years ago

It may be worth adding some volumes to the .yml I provided. So that you can docker rm [jjmumblebotcontainer] and docker pull the latest docker image and make configs persist etc.

sethidden commented 2 years ago

Closing because stale