This repository has been archived by the owner on Jun 28, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 79
Docker install
azlux edited this page Apr 3, 2021
·
6 revisions
Like all web services, use a reverse-proxy (like nginx) to expose the webinterface. See this wiki page
Docker Hub have 2 tags:
-
lastest
(default tag) for stable version -
testing
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
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)
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