Rocket launch with text

10 seconds LinuxServer.io application installer

Introduction

The script getlsioapp.sh allows you to install a LinuxServer.io application in less than 10 seconds. It will automatically create the necessary volume directories on the host and automatically create the correct docker-compose configuration file. The docker-compose configuration file includes a description of all environment variables, volume- and port mappings.

In the example below the script is installed in /usr/local/bin. After that the Sonarr application is installed by running getlsioapp.sh sonarr.

The output of the script will guide you through the setup process:

  • Review the the global settings in docker-env.cfg (you only need to do this once)
  • Review the docker-compose.yaml file (usually no adjustments are needed)
  • Start and stop instructions (using docker-compose)

More information:

Usage

# install once sudo curl -sL https://git.io/JZarS -o /usr/local/bin/getlsioapp.sh sudo chmod ugo+x /usr/local/bin/getlsioapp.sh # run many times getlsioapp.sh <application>
Code language: Markdown (markdown)

The application list you can choose from can be found at https://fleet.linuxserver.io/.

or:

# run once curl -sL https://git.io/JZarS | sh -s <application>
Code language: Markdown (markdown)

You can also specify a different BASEDIR:

BASEDIR=/volume2/docker getlsioapp.sh <application>
Code language: Markdown (markdown)

or:

curl -sL https://git.io/JZarS | BASEDIR=/volume2/docker sh -s <application>
Code language: Markdown (markdown)

Example output:

$ getlsioapp.sh netbootxyz The following directories and files have been created: /volume1/docker/docker-env.cfg /volume1/docker/netbootxyz /volume1/docker/netbootxyz/docker-compose.yaml /volume1/docker/netbootxyz/assets /volume1/docker/netbootxyz/config /volume1/docker/netbootxyz/.env Application setup: 1. Review the global settings in /volume1/docker/docker-env.cfg: #BASEDIR=/volume1/docker #PUID=1024 #PGID=100 #TZ=Europe/Amsterdam 2. Review /volume1/docker/netbootxyz/docker-compose.yaml 3. Create and start the application with: $ cd /volume1/docker/netbootxyz $ sudo docker-compose up -d 4. Stop and remove the application with: $ cd /volume1/docker/netbootxyz $ sudo docker-compose down $
Code language: Markdown (markdown)