Traefik: Difference between revisions

From Piszczynski
(Created page with "===Traefik setup example=== [https://www.howtoforge.com/tutorial/ubuntu-docker-traefik-proxy/ Guide For setting up Traefik] Install latest 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...")
 
Line 2: Line 2:
[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:
*sudo apt install docker-ce
*sudo apt install docker-ce



Revision as of 17:47, 16 February 2024

Traefik setup example

Guide For setting up Traefik Install latest 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