These scripts allow you to easily deploy LinuxServer.io Docker containers using predefined settings.
The scripts are automatically generated based on data from the LinuxServer.io GitHub repositories.
Please keep the following in mind:
- The templates are not supported by LinuxServer.io.
- The templates are generated automatically, so requests to add specific templates cannot be accepted.
- A server with Docker installed
- Git installed
If you do not have Git installed, you can download the ZIP file directly from the GitHub repository.
Clone the repository (or download the ZIP from here):
git clone https://github.com/technorabilia/docker-bits.gitAfter cloning the repository, navigate to the lsio directory:
cd docker-bits/lsioYou will find one file docker-env.cfg and multiple directories. Each directory represents a supported application.
docker-env.cfgIf needed, adjust the base directory for your volume host directories, Process User ID (PUID), Process Group ID (PGID), and timezone (TZ).
More information on PUID and PGID can be found here.
When modifying a variable, ensure you uncomment the line by removing the #.
If no values are set, the Docker scripts will fall back to the defaults shown below:
#BASEDIR=/volume1/docker
#PUID=1000
#PGID=1000
#TZ=Etc/UTCAll applications listed here are available as scripts.
As an example, we will look at the scripts for Sonarr.
After cloning the repository, change into the Sonarr directory:
cd docker-bits/lsio/sonarrYou will see three files:
run-once.sh
docker-compose.yaml
docker-run.shThe run-once.sh script links the general settings from docker-env.cfg and creates the required volume directories:
ln -s ../docker-env.cfg ./.env
. ./.env
mkdir -p ${BASEDIR:-/srv/lsio}/sonarr/config
mkdir -p ${BASEDIR:-/srv/lsio}/sonarr/tv `# [OPTIONAL]`
mkdir -p ${BASEDIR:-/srv/lsio}/sonarr/downloads `# [OPTIONAL]`Run the script:
sh run-once.shAs the name implies, this only needs to be executed once. You may delete the script afterwards if desired.
You can use the docker-compose.yaml file with docker-compose:
---
services:
sonarr:
image: lscr.io/linuxserver/sonarr:latest
container_name: sonarr
environment:
- PUID=${PUID:-1000}
- PGID=${PGID:-1000}
- TZ=${TZ:-Etc/UTC}
volumes:
- ${BASEDIR:-/srv/lsio}/sonarr/config:/config
- ${BASEDIR:-/srv/lsio}/sonarr/tv:/tv
- ${BASEDIR:-/srv/lsio}/sonarr/downloads:/downloads
ports:
- 8989:8989
restart: unless-stoppedStart the Sonarr container:
docker-compose up -dUsing docker-compose is the recommended approach.
Alternatively, you can use docker run through the provided docker-run.sh script:
. ./.env
docker run -d \
--name=sonarr \
-e PUID=${PUID:-1000} \
-e PGID=${PGID:-1000} \
-e TZ=${TZ:-Etc/UTC} \
-p 8989:8989 \
-v ${BASEDIR:-/srv/lsio}/sonarr/config:/config \
-v ${BASEDIR:-/srv/lsio}/sonarr/tv:/tv \
-v ${BASEDIR:-/srv/lsio}/sonarr/downloads:/downloads \
--restart unless-stopped \
lscr.io/linuxserver/sonarr:latestStart the container:
sh docker-run.shFor docker-compose:
$ cd ./docker-bits/lsio/sonarr
$ sh run-once.sh
$ docker-compose up -d
Creating network "sonarr_default" with the default driver
Creating sonarr ... done
$ docker-compose down
Stopping sonarr ... done
Removing sonarr ... done
Removing network sonarr_default
$For docker run:
$ sh docker-run.sh
2d27e4520e57420c12742cbc152aa8bd849f82fcad6aa32bd77f1017f0e15f95
$ docker rm -f sonarr
sonarr
$If you encounter a problem, please report it on the project's GitHub Issues page. Issues will be reviewed as soon as possible.
- With the default volume structure recommended by LinuxServer.io, you cannot use hard links. More information is available here.
- The scripts are updated daily.
A big thank you to LinuxServer.io for their outstanding work. Without their efforts, this project would not be possible.