Skip to content

This repository contains a simple and easy example about Traefik Proxy v3 using Docker Compose and Kubernetes.

Notifications You must be signed in to change notification settings

garovu/traefik-proxy-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Traefik Proxy Example

This repository contains a simple and easy example about Traefik Proxy v3 using Docker Compose and Kubernetes.

traefik proxy concept

Prerequisites

Before getting started, make sure you have the following installed on your machine:

  • Docker
  • Docker Compose

or

  • Kubernetes
  • Helm

Usage

With Docker-compose

  1. Clone this repository to your local machine:

    git clone https://github.com/garovu/traefik-proxy-example.git
  2. Navigate to the project directory:

    cd traefik-proxy-example/docker
  3. Customize the Traefik configuration in the traefik.yaml file according to your needs.

  4. Start the Traefik proxy:

    docker-compose up -d
  5. Verify that the Traefik proxy is running by accessing the Traefik dashboard at http://localhost:8080.

    Checking first example by going to http:localhost:80 which will be point to the whoami container. More about docker provider.

  6. Start monitoring cluster (just metrics at this time):

    docker-compose -f monitoring-compose -d
    • Grafana Dashboard: localhost:3000

    • Prometheus : localhost:9090

  7. Stop this compose and remove containers.

    docker-compose down
    docker-compose -f monitoring-compose.yaml down
    

With Kubernetes

  • *updating

Configuration

The traefik.yaml file contains the configuration for the Traefik proxy. You can modify this file to customize the proxy behavior, such as adding additional middleware, defining routing rules, or enabling TLS.

For more information on how to configure Traefik, refer to the official documentation.

Contributing

Contributions are welcome! If you have any improvements or bug fixes, feel free to open a pull request.

License

This project is licensed under the MIT License.

About

This repository contains a simple and easy example about Traefik Proxy v3 using Docker Compose and Kubernetes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages