/traefik-proxy-example

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

Primary LanguageShell

Traefik Proxy Example

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

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.

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

    docker-compose -f monitoring-compose -d

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.