Standard Installation

This installation does not contain the Servers module nor the servers daemon. The modules are separated by the default installation

If you don’t need a customized install or just want to test out moonlight, check out our installation script

You can install moonlight simply using docker compose

Installation commands

First you need to create the location moonlight will store the configuration and the future data.

mkdir /opt/moonlight
cd /opt/moonlight

Then clone our deploy repository into the directory

git clone https://github.com/Moonlight-Panel/Deploy .

This will provide you with an example env file and a few scripts to update and maintain moonlight. Lets continue by copying over the example env file and editing it to fit your needs. To exit nano, press CTRL + O, press enter if required and then press CTRL + X

cp .env.example
nano .env

For a minimal installation you need to adjust the following settings:

# Set this to the url moonlight is accessible through the internet
MOONLIGHT_URL=http://localhost:9069

# This defines the port moonlight should run on
MOONLIGHT_PORT=9069

After you adjusted your .env file, you simple run the update.sh script in order to build and start the environment

./update.sh

After the command exited your moonlight should be able for access via your web browser via the configured port/public url.

Creating your admin account

After the installation, you can go to your moonlight instance and just register an account. The first account registered will be set as an administrator. You can disable this behavior via the configuration options