Initial commit

master
Meliurwen 3 years ago
commit 6b05e90b27
Signed by: meliurwen
GPG Key ID: 818A8B35E9F1CE10
  1. 10
      .env.example
  2. 4
      .gitignore
  3. 11
      build.sh
  4. 17
      build.updaterepo.sh
  5. 20
      config/config.local.js
  6. 69
      docker-compose.yml
  7. 19
      mumble-botamusique.env.example
  8. 25
      mumble-discord-bridge.env.example
  9. 1
      mumble-server.env.example
  10. 7
      mumble-web.env.example

@ -0,0 +1,10 @@
# Global Settings
LOCAL_STACK_DIR=/srv/docker/volumes/mumble
# Networks
NETWORK=
# Murmur
MBL_VERSION=
MBL_CONTAINER_NAME=
MBL_RESTART=

4
.gitignore vendored

@ -0,0 +1,4 @@
*.env
mumble-server/
mumble-web/
botamusique/

@ -0,0 +1,11 @@
#!/bin/sh
set -e
echo "Updating mumble-server..."
./build.updaterepo.sh https://github.com/sudoforge/docker-mumble-server.git mumble-server
echo "Updating mumble-web..."
./build.updaterepo.sh https://github.com/Johni0702/mumble-web.git mumble-web
echo "Updating botamusique..."
./build.updaterepo.sh https://github.com/azlux/botamusique.git botamusique
echo "Done."

@ -0,0 +1,17 @@
#!/bin/sh
set -e
REPO_URL="${1}"
REPO_DIR_PATH="${2}"
# If repo exists update, else clone it
if [ -d "$REPO_DIR_PATH" ]; then
# Save the root dir path, enter the repo, pull new changes and come back
ROOT_DIR=$(pwd)
cd "$REPO_DIR_PATH"
git pull
cd "$ROOT_DIR"
else
git clone "$REPO_URL" "$REPO_DIR_PATH"
fi

@ -0,0 +1,20 @@
// You can overwrite the default configuration values set in [config.js] here.
// There should never be any required changes to this file and you can always
// simply copy it over when updating to a new version.
let config = window.mumbleWebConfig // eslint-disable-line no-unused-vars
config.connectDialog.address = false
config.connectDialog.port = false
config.connectDialog.token = false
config.connectDialog.address = false
config.connectDialog.password = false
config.defaults.address = window.location.hostname
config.defaults.port = '443'
config.defaults.token = ''
config.defaults.theme = 'MetroMumbleDark'
// E.g. changing default address and theme:
// config.defaults.address = 'voice.example.com'
// config.defaults.theme = 'MetroMumbleDark'

@ -0,0 +1,69 @@
version: '3'
services:
mumble-server:
build:
context: mumble-server/.
container_name: ${MBL_CONTAINER_NAME:-mumble-server}
restart: ${MBL_RESTART:-unless-stopped}
ports:
- 64738:64738/tcp
- 64738:64738/udp
volumes:
- ${LOCAL_STACK_DIR:-./vol}/mumble-server/data:/data
env_file:
- mumble-server.env
mumble-web:
build:
context: mumble-web/.
container_name: ${MBLW_CONTAINER_NAME:-mumble-web}
restart: ${MBLW_RESTART:-unless-stopped}
depends_on:
- mumble-server
expose:
- 8080
volumes:
- ./config/config.local.js:/home/node/dist/config.local.js
env_file:
- mumble-web.env
networks:
- default
- webservices
mumble-botamusique:
build:
context: botamusique/.
dockerfile: Dockerfile.local
container_name: mumble-botamusique
restart: unless-stopped
depends_on:
- mumble-server
expose:
- 8181
env_file:
- mumble-botamusique.env
volumes:
- ${LOCAL_STACK_DIR:-./vol}/botamusique/music:/music
- ${LOCAL_STACK_DIR:-./vol}/botamusique/config:/config
networks:
- default
- webservices
mumble-discord-bridge:
image: stieneee/mumble-discord-bridge
container_name: mumble-discord-bridge
restart: unless-stopped
depends_on:
- mumble-server
volumes:
- ${LOCAL_STACK_DIR:-./vol}/mumble-discord-bridge/data:/data
env_file:
- mumble-discord-bridge.env
networks:
default:
internal: false
webservices:
external:
name: ${NETWORK:-webservices}

@ -0,0 +1,19 @@
BAM_CONFIG_file=/config/glados.ini
BAM_CERTIFICATE=/config/glados.pem
BAM_MUSIC_DB=/config/music.db
BAM_DB=/config/setting-glados.db
BAM_MUMBLE_SERVER=mumble-server
BAM_MUMBLE_PORT=64738
#BAM_MUMBLE_PASSWORD=--password
BAM_USER=GlaDoS
#BAM_TOKENS=--tokens
BAM_CHANNEL=
BAM_BANDWIDTH=200000
#BAM_VERBOSE=--verbose
# Reverse-proxy and certbot
VIRTUAL_HOST=sub.domain.tld
VIRTUAL_PORT=8181
LETSENCRYPT_HOST=sub.domain.tld
LETSENCRYPT_EMAIL=domain@email.tld

@ -0,0 +1,25 @@
# Bare minimum to work (required)
DISCORD_TOKEN=
DISCORD_GID=
DISCORD_CID=
MUMBLE_ADDRESS=mumble-server
# Mumble conn. and auth. (optional)
#MUMBLE_PORT=64738
MUMBLE_INSECURE=true
MUMBLE_CERTIFICATE=/data/cert.pem
#MUMBLE_PASSWORD=
MUMBLE_USERNAME=discord-bridge
MUMBLE_CHANNEL=
# Bot behaviour (optional)
DISCORD_DISABLE_TEXT=false
MUMBLE_DISABLE_TEXT=false
MODE=auto
# Tweaks (optional)
# Jitter buffer from Mumble to Discord to absorb timing issues related to
# network, OS and hardware quality. (Increments of 10ms) (default 50)
#TO_DISCORD_BUFFER=50
#TO_MUMBLE_BUFFER=50

@ -0,0 +1 @@
SUPERUSER_PASSWORD=

@ -0,0 +1,7 @@
MUMBLE_SERVER=mumble-server:64738
# Reverse-proxy and certbot
VIRTUAL_HOST=sub.domain.tld
VIRTUAL_PORT=8080
LETSENCRYPT_HOST=sub.domain.tld
LETSENCRYPT_EMAIL=domain@email.tld
Loading…
Cancel
Save