Skip to content

adilpa91/traefik-demo

 
 

Repository files navigation

Traefik Demo Stack

This is a simple demonstration of Traefik as a reverse proxy with multiple services.

Prerequisites

  • Docker
  • Docker Compose

Setup

  1. DNS Configuration: Ensure you have the following DNS records pointing to your server's IP address:

    • app.yourdomain.com
    • admin.yourdomain.com
    • api.yourdomain.com
    • traefik.yourdomain.com
    • prometheus.yourdomain.com
  2. Start the stack:

docker-compose up -d

Accessing the Services

Docker Compose Configuration

The application utilizes Docker Compose for defining and managing multi-container Docker applications. Key aspects of the configuration include:

Networks

The following networks are defined:

  • app-network: A bridge network for the application's services.
  • monitoring-network: A bridge network for monitoring-related services.

These networks enable communication between the services. app-network connects all the services and monitoring-network is used to connect traefik and prometheus.

Volumes

The following volumes are defined:

  • prometheus_data: A local volume to store Prometheus data.
  • letsencrypt: A local volume to store Let's Encrypt certificates for secure communication.

These volumes persist data across container restarts.

Stopping the Stack

docker-compose down

About

Sample Traefik Demo - Quick Ref

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 57.7%
  • HTML 34.3%
  • Dockerfile 8.0%