Add Unraid Docker templates and update scripts for Fluxer.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
commit
941ba8706c
15 files changed
+596
No files matched your search
@@ -0,0 +1,109 @@
|
||||
# Unraid — Fluxer music bot
|
||||
|
||||
Local images: `fluxer-bot:latest` and `fluxer-nodelink:latest`
|
||||
MySQL / Redis come from Docker Hub. Unraid may show **not available** for the two local images — that is expected.
|
||||
|
||||
You need a Fluxer bot token before the bot will stay running.
|
||||
|
||||
## One-time install
|
||||
|
||||
On the Unraid terminal:
|
||||
|
||||
```bash
|
||||
mkdir -p /mnt/user/appdata
|
||||
cd /mnt/user/appdata
|
||||
git clone https://git.masengr.com/Michael-A-Sloan/fluxer-unraid.git
|
||||
cd fluxer-unraid
|
||||
sh scripts/bootstrap.sh
|
||||
sh scripts/update.sh
|
||||
sh scripts/install-unraid-template.sh
|
||||
```
|
||||
|
||||
Edit the bot token (and owner IDs if you want owner commands):
|
||||
|
||||
```text
|
||||
/mnt/user/appdata/fluxer/config.json
|
||||
```
|
||||
|
||||
Leave the hostnames as `fluxer-mysql`, `fluxer-nodelink`, and `fluxer-redis`.
|
||||
|
||||
Then in Unraid:
|
||||
|
||||
1. Hard-refresh **Docker** (Ctrl+F5)
|
||||
2. **Add Container** in this order, keeping every default path:
|
||||
1. `fluxer-mysql`
|
||||
2. `fluxer-redis`
|
||||
3. `fluxer-nodelink`
|
||||
4. `fluxer-bot`
|
||||
3. Apply each one. All four must use network **fluxer-net**.
|
||||
|
||||
### Optional curl install (templates only)
|
||||
|
||||
If the packaging repo is already cloned and images are already built:
|
||||
|
||||
```bash
|
||||
curl -fsSL -o /boot/config/plugins/dockerMan/templates-user/my-fluxer-mysql.xml \
|
||||
"https://git.masengr.com/Michael-A-Sloan/fluxer-unraid/raw/branch/main/unraid/my-fluxer-mysql.xml"
|
||||
curl -fsSL -o /boot/config/plugins/dockerMan/templates-user/my-fluxer-redis.xml \
|
||||
"https://git.masengr.com/Michael-A-Sloan/fluxer-unraid/raw/branch/main/unraid/my-fluxer-redis.xml"
|
||||
curl -fsSL -o /boot/config/plugins/dockerMan/templates-user/my-fluxer-nodelink.xml \
|
||||
"https://git.masengr.com/Michael-A-Sloan/fluxer-unraid/raw/branch/main/unraid/my-fluxer-nodelink.xml"
|
||||
curl -fsSL -o /boot/config/plugins/dockerMan/templates-user/my-fluxer-bot.xml \
|
||||
"https://git.masengr.com/Michael-A-Sloan/fluxer-unraid/raw/branch/main/unraid/my-fluxer-bot.xml"
|
||||
```
|
||||
|
||||
## Update when Fluxer changes
|
||||
|
||||
Gitea mirrors GitHub into [Michael-A-Sloan/fluxer](https://git.masengr.com/Michael-A-Sloan/fluxer). Sync the mirror in Gitea if it is stale, then:
|
||||
|
||||
```bash
|
||||
cd /mnt/user/appdata/fluxer-unraid
|
||||
sh scripts/update.sh
|
||||
```
|
||||
|
||||
If the containers are Unraid-managed (not “3rd Party”):
|
||||
|
||||
**Docker → fluxer-nodelink → Force update**
|
||||
**Docker → fluxer-bot → Force update**
|
||||
|
||||
Data stays in:
|
||||
|
||||
- `/mnt/user/appdata/fluxer/config.json`
|
||||
- `/mnt/user/appdata/fluxer/storage`
|
||||
- `/mnt/user/appdata/fluxer/mysql`
|
||||
- `/mnt/user/appdata/fluxer/redis`
|
||||
|
||||
## Optional: Community Apps private list
|
||||
|
||||
CA Settings → add repository:
|
||||
|
||||
```text
|
||||
https://git.masengr.com/Michael-A-Sloan/fluxer-unraid
|
||||
```
|
||||
|
||||
You still have to run `scripts/update.sh` before the bot/NodeLink templates will start. They are local images, not Docker Hub pulls.
|
||||
|
||||
## Optional: compose instead of templates
|
||||
|
||||
```bash
|
||||
cd /mnt/user/appdata/fluxer-unraid
|
||||
sh scripts/bootstrap.sh
|
||||
# edit /mnt/user/appdata/fluxer/config.json
|
||||
sh scripts/update.sh
|
||||
docker compose -f docker-compose.unraid.yml up -d
|
||||
```
|
||||
|
||||
Compose containers show as **3rd Party** in Unraid. Updates are `sh scripts/update.sh` then `docker compose -f docker-compose.unraid.yml up -d`.
|
||||
|
||||
## Appdata layout
|
||||
|
||||
```text
|
||||
/mnt/user/appdata/fluxer-unraid/ # this repo (scripts + templates)
|
||||
/mnt/user/appdata/fluxer/
|
||||
src/ # cloned Gitea fluxer mirror
|
||||
config.json # bot token + MySQL/NodeLink
|
||||
nodelink.config.json
|
||||
storage/
|
||||
mysql/
|
||||
redis/
|
||||
```
|
||||
Reference in new issue
Block a user