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/
|
||||
```
|
||||
@@ -0,0 +1,6 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" role="img" aria-label="Fluxer">
|
||||
<rect width="64" height="64" rx="14" fill="#1b1f2a"/>
|
||||
<circle cx="22" cy="44" r="8" fill="#4ea8de"/>
|
||||
<circle cx="44" cy="38" r="6" fill="#4ea8de"/>
|
||||
<path d="M30 44 V16 h14 v22" fill="none" stroke="#4ea8de" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 379 B |
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0"?>
|
||||
<Container version="2">
|
||||
<Name>fluxer-bot</Name>
|
||||
<Beta>false</Beta>
|
||||
<Category>MediaApp:Music</Category>
|
||||
<Repository>fluxer-bot:latest</Repository>
|
||||
<Registry></Registry>
|
||||
<Network>fluxer-net</Network>
|
||||
<MyIP/>
|
||||
<Privileged>false</Privileged>
|
||||
<PrivilegedReq>false</PrivilegedReq>
|
||||
<ExtraParams>--restart=unless-stopped</ExtraParams>
|
||||
<Shell>sh</Shell>
|
||||
<Support>https://git.masengr.com/Michael-A-Sloan/fluxer-unraid</Support>
|
||||
<Project>https://git.masengr.com/Michael-A-Sloan/fluxer</Project>
|
||||
<Overview>Remix Fluxer music bot (YouTube, Spotify, SoundCloud, and more via NodeLink + LiveKit). Build locally on Unraid from the Gitea fluxer mirror: sh scripts/update.sh then Force update. Put your Fluxer bot token in /mnt/user/appdata/fluxer/config.json.</Overview>
|
||||
<WebUI>http://[IP]:[PORT:8080]/</WebUI>
|
||||
<TemplateURL>https://git.masengr.com/Michael-A-Sloan/fluxer-unraid/raw/branch/main/unraid/my-fluxer-bot.xml</TemplateURL>
|
||||
<Icon>https://git.masengr.com/Michael-A-Sloan/fluxer-unraid/raw/branch/main/unraid/icon.svg</Icon>
|
||||
<Requires>Create docker network fluxer-net first. Start fluxer-mysql and fluxer-nodelink first. Build image fluxer-bot:latest with scripts/update.sh. Edit config.json token before first start.</Requires>
|
||||
<ReadMe>https://git.masengr.com/Michael-A-Sloan/fluxer-unraid/raw/branch/main/unraid/INSTALL.md</ReadMe>
|
||||
<DonateText/>
|
||||
<DonateLink/>
|
||||
<PostArgs/>
|
||||
<CPUset/>
|
||||
<Date>1970-01-01</Date>
|
||||
<Changes/>
|
||||
|
||||
<Config Name="Path: config.json" Target="/app/config.json" Default="/mnt/user/appdata/fluxer/config.json" Mode="rw" Description="Bot config (token, MySQL, NodeLink). Hostnames must stay fluxer-mysql / fluxer-nodelink / fluxer-redis" Type="Path" Display="always" Required="true" Mask="false">/mnt/user/appdata/fluxer/config.json</Config>
|
||||
<Config Name="Path: storage" Target="/app/storage" Default="/mnt/user/appdata/fluxer/storage" Mode="rw" Description="Locales, modules, runtime storage" Type="Path" Display="always" Required="true" Mask="false">/mnt/user/appdata/fluxer/storage</Config>
|
||||
<Config Name="Port: Web" Target="80" Default="8080" Mode="tcp" Description="Optional dashboard/health port" Type="Port" Display="always" Required="false" Mask="false">8080</Config>
|
||||
<Config Name="Variable: TZ" Target="TZ" Default="America/New_York" Description="Timezone" Type="Variable" Display="always" Required="false" Mask="false">America/New_York</Config>
|
||||
</Container>
|
||||
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0"?>
|
||||
<Container version="2">
|
||||
<Name>fluxer-mysql</Name>
|
||||
<Beta>false</Beta>
|
||||
<Category>Network:Other</Category>
|
||||
<Repository>mysql:8.0</Repository>
|
||||
<Registry>https://hub.docker.com/_/mysql</Registry>
|
||||
<Network>fluxer-net</Network>
|
||||
<MyIP/>
|
||||
<Privileged>false</Privileged>
|
||||
<PrivilegedReq>false</PrivilegedReq>
|
||||
<ExtraParams>--restart=unless-stopped</ExtraParams>
|
||||
<Shell>sh</Shell>
|
||||
<Support>https://git.masengr.com/Michael-A-Sloan/fluxer-unraid</Support>
|
||||
<Project>https://git.masengr.com/Michael-A-Sloan/fluxer</Project>
|
||||
<Overview>MySQL 8 for Remix Fluxer guild settings, Last.fm, and track options. Use the fluxer-net network so fluxer-bot can reach host fluxer-mysql. Start this before the bot.</Overview>
|
||||
<WebUI/>
|
||||
<TemplateURL>https://git.masengr.com/Michael-A-Sloan/fluxer-unraid/raw/branch/main/unraid/my-fluxer-mysql.xml</TemplateURL>
|
||||
<Icon>https://git.masengr.com/Michael-A-Sloan/fluxer-unraid/raw/branch/main/unraid/icon.svg</Icon>
|
||||
<Requires>Create docker network fluxer-net first: docker network create fluxer-net. Keep MYSQL_* values matching /mnt/user/appdata/fluxer/config.json.</Requires>
|
||||
<ReadMe>https://git.masengr.com/Michael-A-Sloan/fluxer-unraid/raw/branch/main/unraid/INSTALL.md</ReadMe>
|
||||
<DonateText/>
|
||||
<DonateLink/>
|
||||
<PostArgs/>
|
||||
<CPUset/>
|
||||
<Date>1970-01-01</Date>
|
||||
<Changes/>
|
||||
|
||||
<Config Name="Path: MySQL data" Target="/var/lib/mysql" Default="/mnt/user/appdata/fluxer/mysql" Mode="rw" Description="Persistent MySQL data" Type="Path" Display="always" Required="true" Mask="false">/mnt/user/appdata/fluxer/mysql</Config>
|
||||
<Config Name="Variable: MYSQL_DATABASE" Target="MYSQL_DATABASE" Default="remix" Description="Database name (must match config.json mysql.database)" Type="Variable" Display="always" Required="true" Mask="false">remix</Config>
|
||||
<Config Name="Variable: MYSQL_USER" Target="MYSQL_USER" Default="remix" Description="App user (must match config.json mysql.user)" Type="Variable" Display="always" Required="true" Mask="false">remix</Config>
|
||||
<Config Name="Variable: MYSQL_PASSWORD" Target="MYSQL_PASSWORD" Default="remix_pw" Description="App password (must match config.json mysql.password)" Type="Variable" Display="always" Required="true" Mask="true">remix_pw</Config>
|
||||
<Config Name="Variable: MYSQL_ROOT_PASSWORD" Target="MYSQL_ROOT_PASSWORD" Default="remix_root_pw" Description="MySQL root password" Type="Variable" Display="always" Required="true" Mask="true">remix_root_pw</Config>
|
||||
<Config Name="Variable: TZ" Target="TZ" Default="America/New_York" Description="Timezone" Type="Variable" Display="always" Required="false" Mask="false">America/New_York</Config>
|
||||
</Container>
|
||||
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0"?>
|
||||
<Container version="2">
|
||||
<Name>fluxer-nodelink</Name>
|
||||
<Beta>false</Beta>
|
||||
<Category>MediaApp:Music</Category>
|
||||
<Repository>fluxer-nodelink:latest</Repository>
|
||||
<Registry></Registry>
|
||||
<Network>fluxer-net</Network>
|
||||
<MyIP/>
|
||||
<Privileged>false</Privileged>
|
||||
<PrivilegedReq>false</PrivilegedReq>
|
||||
<ExtraParams>--restart=unless-stopped</ExtraParams>
|
||||
<Shell>sh</Shell>
|
||||
<Support>https://git.masengr.com/Michael-A-Sloan/fluxer-unraid</Support>
|
||||
<Project>https://git.masengr.com/Michael-A-Sloan/fluxer</Project>
|
||||
<Overview>NodeLink audio node for Remix Fluxer (search + streams). Build locally: sh scripts/update.sh. Password must match config.json nodelink.password.</Overview>
|
||||
<WebUI/>
|
||||
<TemplateURL>https://git.masengr.com/Michael-A-Sloan/fluxer-unraid/raw/branch/main/unraid/my-fluxer-nodelink.xml</TemplateURL>
|
||||
<Icon>https://git.masengr.com/Michael-A-Sloan/fluxer-unraid/raw/branch/main/unraid/icon.svg</Icon>
|
||||
<Requires>Create docker network fluxer-net first. Build image fluxer-nodelink:latest with scripts/update.sh before Apply. Start this before fluxer-bot.</Requires>
|
||||
<ReadMe>https://git.masengr.com/Michael-A-Sloan/fluxer-unraid/raw/branch/main/unraid/INSTALL.md</ReadMe>
|
||||
<DonateText/>
|
||||
<DonateLink/>
|
||||
<PostArgs/>
|
||||
<CPUset/>
|
||||
<Date>1970-01-01</Date>
|
||||
<Changes/>
|
||||
|
||||
<Config Name="Path: NodeLink config" Target="/nodelink/config.json" Default="/mnt/user/appdata/fluxer/nodelink.config.json" Mode="ro" Description="NodeLink config (sources, password, cache)" Type="Path" Display="always" Required="true" Mask="false">/mnt/user/appdata/fluxer/nodelink.config.json</Config>
|
||||
<Config Name="Port: NodeLink" Target="3000" Default="3000" Mode="tcp" Description="Optional host publish; bot uses fluxer-net internally" Type="Port" Display="advanced" Required="false" Mask="false">3000</Config>
|
||||
<Config Name="Variable: TZ" Target="TZ" Default="America/New_York" Description="Timezone" Type="Variable" Display="always" Required="false" Mask="false">America/New_York</Config>
|
||||
</Container>
|
||||
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0"?>
|
||||
<Container version="2">
|
||||
<Name>fluxer-redis</Name>
|
||||
<Beta>false</Beta>
|
||||
<Category>Network:Other</Category>
|
||||
<Repository>redis:7-alpine</Repository>
|
||||
<Registry>https://hub.docker.com/_/redis</Registry>
|
||||
<Network>fluxer-net</Network>
|
||||
<MyIP/>
|
||||
<Privileged>false</Privileged>
|
||||
<PrivilegedReq>false</PrivilegedReq>
|
||||
<ExtraParams>--restart=unless-stopped</ExtraParams>
|
||||
<Shell>sh</Shell>
|
||||
<Support>https://git.masengr.com/Michael-A-Sloan/fluxer-unraid</Support>
|
||||
<Project>https://git.masengr.com/Michael-A-Sloan/fluxer</Project>
|
||||
<Overview>Redis for the optional Remix Fluxer dashboard RPC. Keep it on fluxer-net and do not publish the port publicly.</Overview>
|
||||
<WebUI/>
|
||||
<TemplateURL>https://git.masengr.com/Michael-A-Sloan/fluxer-unraid/raw/branch/main/unraid/my-fluxer-redis.xml</TemplateURL>
|
||||
<Icon>https://git.masengr.com/Michael-A-Sloan/fluxer-unraid/raw/branch/main/unraid/icon.svg</Icon>
|
||||
<Requires>Create docker network fluxer-net first: docker network create fluxer-net. Dashboard RPC has no shared secret — keep Redis on the internal network only.</Requires>
|
||||
<ReadMe>https://git.masengr.com/Michael-A-Sloan/fluxer-unraid/raw/branch/main/unraid/INSTALL.md</ReadMe>
|
||||
<DonateText/>
|
||||
<DonateLink/>
|
||||
<PostArgs/>
|
||||
<CPUset/>
|
||||
<Date>1970-01-01</Date>
|
||||
<Changes/>
|
||||
|
||||
<Config Name="Path: Redis data" Target="/data" Default="/mnt/user/appdata/fluxer/redis" Mode="rw" Description="Persistent Redis data" Type="Path" Display="always" Required="true" Mask="false">/mnt/user/appdata/fluxer/redis</Config>
|
||||
<Config Name="Variable: TZ" Target="TZ" Default="America/New_York" Description="Timezone" Type="Variable" Display="always" Required="false" Mask="false">America/New_York</Config>
|
||||
</Container>
|
||||
Reference in new issue
Block a user