Traefik كبروكسي عكسي حديث

في عصر الحاويات (Containers) والخدمات المصغرة (Microservices)، أصبحت الطرق التقليدية لإعداد البروكسي (كتابة ملفات config يدوياً) مملة وغير عملية. هنا يأتي Traefik: البروكسي الذكي الذي يكتشف خدماتك تلقائياً.

سحر الاكتشاف التلقائي (Auto Discovery)

تخيل أنك أطلقت 5 حاويات Docker جديدة. مع Nginx أو HAProxy، يجب أن تذهب وتعدل ملف الإعدادات وتعمل Reload. مع Traefik، هو يستمع لـ Docker API، يرى الحاويات الجديدة، ويقوم بتوجيه الحركة إليها فوراً ودون تدخل منك!

لوحة التحكم (Dashboard)

يأتي Traefik مع لوحة تحكم ويب أنيقة تعرض لك حالة كل الخدمات (Services) والموجهات (Routers) والبروتوكولات المستخدمة في الوقت الفعلي.

مثال مع Docker Compose

كل ما تحتاجه هو إضافة "Labels" لحاويتك، وTraefik سيفهم الباقي.


labels:
  - "traefik.enable=true"
  - "traefik.http.routers.myapp.rule=Host(`myapp.localhost`)"
                    

متى تستخدمه؟

إذا كانت بنيتك التحتية تعتمد بشكل كبير على Docker أو Kubernetes، فإن Traefik هو الخيار الأسهل والأسرع. أما للبيئات التقليدية (سيرفرات ثابتة)، قد يكون HAProxy أو Nginx خياراً أبسط.

Disclosure: we may earn a commission if you purchase through some links.

Services Related To This Article

These offers are related to privacy, password security, and development workflows. Replace the current links with your real affiliate links through environment variables.

Default Links Need Replacement

Proton

Privacy, mail, and VPN

A strong fit for privacy-focused visitors who want VPN and secure email under one brand.

Explore Proton

Surfshark

Consumer VPN

Best on pages about geo-blocking, privacy, and public Wi-Fi protection.

Try Surfshark

NordVPN

High-converting VPN

A clear offer for users who need a paid, more durable alternative to a free proxy.

View NordVPN

1Password

Password management

The best match for password, secrets, team access, and personal security pages.

Discover 1Password

DigitalOcean

Developer cloud hosting

A strong fit for proxy setup, server, and infrastructure content aimed at developers and small teams.

Start with DigitalOcean