Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions blueprints/nodelink/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
version: "3.8"

services:
nodelink:
image: performanc/nodelink:3.8.0
restart: unless-stopped
expose:
- "2333"
environment:
NODELINK_SERVER_HOST: 0.0.0.0
NODELINK_SERVER_PORT: "2333"
NODELINK_SERVER_PASSWORD: ${NODELINK_SERVER_PASSWORD}
NODELINK_LOGGING_LEVEL: ${NODELINK_LOGGING_LEVEL}
NODELINK_LOGGING_FILE_ENABLED: ${NODELINK_LOGGING_FILE_ENABLED}
NODELINK_SOURCES_LOCAL_ENABLED: ${NODELINK_SOURCES_LOCAL_ENABLED}
NODELINK_SOURCES_LOCAL_BASEPATH: /app/local-music/
NODELINK_METRICS_ENABLED: ${NODELINK_METRICS_ENABLED}
volumes:
- nodelink-cache:/app/.cache
- nodelink-local-music:/app/local-music
- nodelink-logs:/app/logs
healthcheck:
test:
[
"CMD-SHELL",
"node -e \"fetch('http://127.0.0.1:2333/version').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))\"",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s

volumes:
nodelink-cache:
nodelink-local-music:
nodelink-logs:
6 changes: 6 additions & 0 deletions blueprints/nodelink/nodelink.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
45 changes: 45 additions & 0 deletions blueprints/nodelink/template.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
[variables]
main_domain = "${domain}"
server_password = "${password:32}"
logging_level = "info"
file_logging_enabled = "false"
local_source_enabled = "false"
metrics_enabled = "false"

[[config.domains]]
serviceName = "nodelink"
port = 2333
host = "${main_domain}"
path = "/"

[[config.mounts]]
filePath = "README.md"
content = """# NodeLink

This template deploys NodeLink, a Lavalink-compatible audio server for Discord music bots and real-time audio systems.

## Connection

Use the deployed domain as your NodeLink/Lavalink server URL:

- Host: `https://${main_domain}`
- Port: `443` when connecting through the Dokploy domain
- Password: the generated `server_password` value

NodeLink exposes the `/version`, `/v4/stats`, and Lavalink-compatible WebSocket/API endpoints through the same domain.

## Local Music

The template creates a persistent `nodelink-local-music` volume mounted at `/app/local-music`. Set `local_source_enabled` to `true` before deployment if you want NodeLink to resolve `file:///app/local-music/...` tracks.

## Metrics

Set `metrics_enabled` to `true` to expose Prometheus metrics at `/v4/metrics`. Keep this disabled unless your deployment is protected and monitored.
"""

[config.env]
NODELINK_SERVER_PASSWORD = "${server_password}"
NODELINK_LOGGING_LEVEL = "${logging_level}"
NODELINK_LOGGING_FILE_ENABLED = "${file_logging_enabled}"
NODELINK_SOURCES_LOCAL_ENABLED = "${local_source_enabled}"
NODELINK_METRICS_ENABLED = "${metrics_enabled}"
18 changes: 18 additions & 0 deletions meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4415,6 +4415,24 @@
"nocode"
]
},
{
"id": "nodelink",
"name": "NodeLink",
"version": "3.8.0",
"description": "NodeLink is a lightweight Lavalink-compatible audio server built in Node.js for Discord music bots and real-time audio systems.",
"logo": "nodelink.svg",
"links": {
"github": "https://github.com/PerformanC/NodeLink",
"website": "https://nodelink.js.org/",
"docs": "https://nodelink.js.org/docs/advanced/docker"
},
"tags": [
"audio",
"discord",
"lavalink",
"music"
]
},
{
"id": "notifuse",
"name": "Notifuse",
Expand Down
Loading