mirror of
https://github.com/azlux/botamusique
synced 2024-11-23 13:56:17 +00:00
6
Docker install
azlux edited this page 2021-04-03 12:53:47 +02:00
Table of Contents
2 ways to get the bot up !
Like all web services, use a reverse-proxy (like nginx) to expose the webinterface. See this wiki page
Docker Hub
Docker Hub have 2 tags:
lastest
(default tag) for stable versiontesting
for last commit version
For 2 bot sharing the same music database, here the docker-compose example:
services:
xana:
image: azlux/botamusique
container_name: XANA
hostname: XANA
restart: on-failure
expose:
- 8181
environment:
BAM_CONFIG_file: /config/xana.ini
BAM_CERTIFICATE: /config/xana.pem
BAM_MUSIC_DB: /config/music.db
BAM_DB: /config/setting-xana.db
volumes:
- ../data/botamusique/music:/music
- ../data/botamusique/config:/config
cpus: 2
glados:
image: azlux/botamusique
container_name: GlaDoS
hostname: GlaDoS
restart: on-failure
expose:
- 8181
environment:
BAM_CONFIG_file: /config/glados.ini
BAM_CERTIFICATE: /config/glados.pem
BAM_MUSIC_DB: /config/music.db
BAM_DB: /config/setting-glados.db
volumes:
- ../data/botamusique/music:/music
- ../data/botamusique/config:/config
cpus: 2
Self building the bot
After cloning the repository, use the Dockerfile.local
file to build the image based on last commit.
docker build -f Dockerfile.local .
Or
docker build -f Dockerfile.local --build-arg VERSION="7.1" .
To build a specific bot version (or commit hash)
Environments Variables
Variables and CLI equivalent (see CLI parameters wiki):
BAM_DB
=--db
BAM_MUSIC_DB
=--music-db
BAM_MUMBLE_SERVER
=--server
BAM_MUMBLE_PASSWORD
=--password
BAM_MUMBLE_PORT
=--port
BAM_USER
=--user
BAM_TOKENS
=--tokens
BAM_CHANNEL
=--channel
BAM_CERTIFICATE
=--cert
BAM_VERBOSE
=--verbose
BAM_CONFIG_file
=--config