NOTE: You should not use the Heroku/Replit deployment options for production installments
To deploy to Replit, import the GitHub repository into a new Bash repl - the bootstrap scripts will take care of the rest
- Clone this git repository into a folder on your server
$ cd /path/to/lavalink/server
$ git clone https://github.com/cobaltgit/lavalink-server.git .
- Build the docker image
$ docker build -t lavalink "."
Docker CLI:
$ docker run -dit -e PORT=<port-number> -e PASSWORD=youshallnotpass -e MEMORY=300M -p <port-number>:<port-number> --restart=unless-stopped --name lavalink lavalink
Docker-Compose:
version: "3"
services:
lavalink:
image: lavalink:latest
environment:
PORT: <port-number>
PASSWORD: youshallnotpass
MEMORY: 300M
ports:
- <port-number>:<port-number>: