jmusicbot-docker/README.md
2024-04-11 20:02:22 -05:00

48 lines
1.5 KiB
Markdown

# JMusicBot Docker
[![Release](https://img.shields.io/github/release/jagrosh/MusicBot?color=g&style=for-the-badge)](https://github.com/jagrosh/MusicBot/releases/latest)
![Supports amd64 Architecture](https://img.shields.io/badge/amd64-yes-blueviolet.svg?style=for-the-badge)
![Supports arm64 Architecture](https://img.shields.io/badge/arm64-yes-blueviolet.svg?style=for-the-badge)
A simple Docker container for [JMusicBot](https://github.com/jagrosh/MusicBot)
## Usage
- Place your **config.txt**, **Playlists** folder, and **serversettings.json** file (if you have one) in `/your/path/to/config`. This directory will be shared with the container.
- You can specify a JMusicBot version using the environment value `BOT_VERSION`. By default it will use the latest version so you do not have to include the value if you don't want to.
### Docker examples
- Using docker cli
```bash
docker run -dit \
--name=jmusicbot \
-v /your/path/to/config:/config \
--restart=unless-stopped \
ghcr.io/yojoshb/jmusicbot-docker
```
- Using docker compose
```bash
---
version: "3"
services:
jmusicbot:
image: ghcr.io/yojoshb/jmusicbot-docker
container_name: jmusicbot
environment:
- BOT_VERSION=0.3.9 # You can leave this out if you just want to run the latest version
volumes:
- /your/path/to/config:/config
restart: unless-stopped
```
---
#### Debugging
- If you need to access the container you can hop into it and get a shell using:
```bash
docker exec -it jmusicbot /bin/bash
```
- Or read the logs:
```bash
docker logs jmusicbot
```