Skip to content

ElwinEhlers/docker-Portainer-yml

Repository files navigation

How to run your own Homelab via Portainer on a Debian machine.

yml files for a Homelab


When you have installed a new Debian and you will run your web applications via Docker follow the next steps.
The web applications can be setup via Portainer.
For the setup of the web applications I will share my X.yml files with you.
Those can be used to create a stack, a comfortable way to apply your Docker applications under Portainer.

apt-get update && apt-get upgrade
apt install sudo wget curl htop sudo git mc
adduser docker

User privilege specification add like here the user docker

visudo

root ALL=(ALL:ALL) ALL
docker ALL=(ALL:ALL) ALL

usermod -aG sudo docker
su docker

Install now Docker with the install script from https://github.com/docker/docker-install. In this way you get also the latest version of compose.

curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
cd /home/docker

Visit here also to see the next steps. https://docs.portainer.io/start/install-ce/server/docker/linux

docker volume create portainer_data

Create a network 'proxy' to make all available in the net.

sudo docker network create proxy
docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest
id

show your ID: uid=1000(docker) gid=1000(docker) groups=1000(docker),27(sudo),100(users)

Now it is time for the nginx-reserve-proxy to grab the upcoming services and here you will use the first data.yml

Releases

No releases published

Packages

No packages published