To do that, we need Docker. And we may also need a Server which can withstand more heavy-like loads. with that Server, i don’t mean a Raspberry Pi 4, which does not have enough ressources to do such tasks. Of course, a Raspberry Pi 4 is a Server, but not one good enough to handle these RAM and CPU heavy tasks, which is why i would not recommend running Docker with this Hardware. Of course, Docker takes up a small amount of Resources, but it is easier to deploy something on Docker and then not care about that, because it is so easy to update and upgrade.
Installing Docker
To start of we need Docker. Because Docker made it’s own documentation about how to install it, i will not provide commands for other distros, than fedora. We install Docker with the following commands: (ATTENTION: Please make sure that you are root, becuase it is basis of this article.):
dnf -y install dnf-plugins-core
dnf config-manager \
--add-repo \
https://download.docker.com/linux/fedora/docker-ce.repo
dnf install docker-ce docker-ce-cli containerd.io docker-compose-plugin
Running Services with the help of docker compose
I will use compose for this, because it is easier to manage and more user-friendly for the admin.For the Test we will run the following Services rollter from thedmdim and cloud-torrent from jpillora.
To create the docker-compose.yml, we need a folder. I would recommnd creating the docker folder in the root Folder. To do this simply do: mkdir /docker
and cd /docker
.
Now we create the file using VIM, because it has Syntax-Highlighting and also formats the file right. (To quit VIM, simply do: :wq
) Now we create the file: vim docker-compose.yml
Insert the following for a simple test:
version: '3.9'
services:
rollter:
container_name: rollter
environment:
- VPN_IPSEC_PSK=your_ipsec_pre_shared_key
- VPN_USER=your_vpn_username
- VPN_PASSWORD=your_vpn_password
ports:
- '500:500/udp'
- '4500:4500/udp'
privileged: false
image: thedmdim/rollter
cloud-torrent:
ports:
- '3000:3000'
volumes:
- '/docker/torrents/downloads:/downloads'
image: jpillora/cloud-torrent


To run the services, we do do the following: docker compose up -d
(IMPORTANT: This need to be run in the /docker folder)
The output of the terminal shold look something like this:

Testing to see if the Services run
To test, if our Services are running, we navigate to servers IP on port 3000 with the webbrowser. An example of that: http://192.168.1.114:3000/
If we see this:

it means, that everything works correctly. Have Fun with Docker.
This Article in German:
https://rsclub22.wagnersnetz.de/index.php/2022/06/15/wie-man-services-auf-eine-moderne-art-und-weise-unter-linux-installiert/