Traefik: Difference between revisions

From Piszczynski
Line 1: Line 1:
===Traefik setup example===
===Traefik setup example===
[https://www.howtoforge.com/tutorial/ubuntu-docker-traefik-proxy/ Guide For setting up Traefik]
[https://www.howtoforge.com/tutorial/ubuntu-docker-traefik-proxy/ Guide For setting up Traefik]
Install latest docker-ce:
Install latest docker-ce:<syntaxhighlight lang="bash">
 
sudo apt install docker-ce
</syntaxhighlight>
*sudo apt install docker-ce
*sudo apt install docker-ce



Revision as of 17:48, 16 February 2024

Traefik setup example

Guide For setting up Traefik

Install latest docker-ce:

sudo apt install docker-ce
  • sudo apt install docker-ce

Start the docker service and enable it to launch everytime at system boot.

  • systemctl start docker
  • systemctl enable docker

Check version of docker:

  • docker version

Additional: Running Docker for non-root user Docker container can be run under the non-root user. We just need to add the user to the docker group.

Add 'aleks' user.

  • useradd -m -s /bin/bash aleks

Now add the 'aleks' user to the docker group, then restart the docker service.

  • usermod -a -G docker aleks
  • systemctl restart docker

Test by running the docker hello-world.

  • docker run -it hello-world

Install Docker Compose

  • sudo apt install docker-compose

Check version:

  • docker-compose version

Create Custom Docker Network

Check the available docker network on the system.

  • docker network ls