{"id":18759,"date":"2025-09-30T15:11:48","date_gmt":"2025-09-30T12:11:48","guid":{"rendered":"https:\/\/unihost.com\/help\/?p=18759"},"modified":"2026-11-06T14:25:37","modified_gmt":"2026-11-06T11:25:37","slug":"installing-traefik-reverse-proxy-with-portainer","status":"publish","type":"post","link":"https:\/\/unihost.com\/help\/installing-traefik-reverse-proxy-with-portainer\/","title":{"rendered":"How to Install Traefik Reverse Proxy with Portainer"},"content":{"rendered":"<div style=\"font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.55;\">\n<p style=\"font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.55;margin:0 0 12px;\">Traefik Reverse Proxy routes Docker containers by domain and can issue free HTTPS certificates with Let&#x27;s Encrypt. Install it from the Unihost application template in Portainer, or deploy the Traefik v3 Compose stack below. Configure DNS and ports 80\/443, enable the Docker provider, protect the dashboard with Basic Authentication, and add labels to publish your applications.<\/p>\n<p style=\"font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.55;margin:0 0 12px;\"><strong>Compatibility:<\/strong> Linux with Docker Engine, Portainer, and Traefik v3. The screenshots show the Unihost template interface.<\/p>\n<h2 style=\"font-family:Ubuntu,Arial,sans-serif;font-size:18pt;line-height:1.3;margin:23px 0 12px;\">Requirements<\/h2>\n<ul style=\"list-style:disc outside;padding-left:26px;margin:8px 0 15px;\">\n<li style=\"display:list-item;font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.5;margin:5px 0\">A VPS with Docker and Portainer installed, preferably using the Unihost template collection.<\/li>\n<li style=\"display:list-item;font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.5;margin:5px 0\">A domain with A records pointing to the public server IP.<\/li>\n<li style=\"display:list-item;font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.5;margin:5px 0\">Free inbound TCP ports 80 and 443, plus administrator access to the host.<\/li>\n<li style=\"display:list-item;font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.5;margin:5px 0\">Console access in case firewall or networking changes interrupt SSH.<\/li>\n<\/ul>\n<p style=\"font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.55;margin:0 0 12px;\">Before starting, verify that the DNS records resolve to the server and no other proxy uses the required ports:<\/p>\n<pre style=\"font-family:Ubuntu,monospace;font-size:12pt;line-height:1.35;background:#f3f4f6;color:#252b36;padding:11px;border-radius:4px;white-space:pre-wrap;overflow-wrap:anywhere;overflow-x:auto;margin:10px 0 14px;\">dig +short traefik.example.com\r\nsudo ss -tlnp | grep -E &quot;:(80|443)\\b&quot;<\/pre>\n<h2 style=\"font-family:Ubuntu,Arial,sans-serif;font-size:18pt;line-height:1.3;margin:23px 0 12px;\">Steps<\/h2>\n<h3 style=\"font-family:Ubuntu,Arial,sans-serif;font-size:14pt;line-height:1.35;margin:17px 0 9px;\">Step 1. Install Traefik from the Portainer template<\/h3>\n<p style=\"font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.55;margin:0 0 12px;\">In Portainer, open <strong>Templates \u2192 Application \u2192 Traefik Reverse Proxy<\/strong>. Select the Unihost template, enter its required settings and a strong access password, then deploy it.<\/p>\n<p style=\"margin:12px 0 15px\"><img decoding=\"async\" src=\"https:\/\/unihost.com\/help\/wp-content\/uploads\/2025\/09\/Screenshot-from-2025-09-30-14-57-20.png\" alt=\"Select Traefik Reverse Proxy in Portainer application templates\" loading=\"lazy\" style=\"max-width:100%;height:auto;display:block;\" title=\"How to Install Traefik Reverse Proxy with Portainer - Image 1\"><\/p>\n<p style=\"margin:12px 0 15px\"><img decoding=\"async\" src=\"https:\/\/unihost.com\/help\/wp-content\/uploads\/2025\/09\/Screenshot-from-2025-09-30-14-57-29.png\" alt=\"Traefik template configuration including ACME email and dashboard access control\" loading=\"lazy\" style=\"max-width:100%;height:auto;display:block;\" title=\"How to Install Traefik Reverse Proxy with Portainer - Image 2\"><\/p>\n<p style=\"font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.55;margin:0 0 12px;\">Open <strong>Stacks<\/strong> to confirm that the Traefik stack was created. The original template may expose the dashboard at <strong>http:\/\/SERVER_IP:8080<\/strong>. Do not leave an unprotected dashboard publicly accessible; the HTTPS configuration below uses a protected dashboard instead.<\/p>\n<p style=\"margin:12px 0 15px\"><img decoding=\"async\" src=\"https:\/\/unihost.com\/help\/wp-content\/uploads\/2025\/09\/Screenshot-from-2025-09-30-14-57-35.png\" alt=\"Traefik stack created in Portainer\" loading=\"lazy\" style=\"max-width:100%;height:auto;display:block;\" title=\"How to Install Traefik Reverse Proxy with Portainer - Image 3\"><\/p>\n<h3 style=\"font-family:Ubuntu,Arial,sans-serif;font-size:14pt;line-height:1.35;margin:17px 0 9px;\">Step 2. Prepare DNS, the proxy network and dashboard credentials<\/h3>\n<p style=\"font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.55;margin:0 0 12px;\">Create A records for <strong>traefik.example.com<\/strong> and <strong>blog.example.com<\/strong>, both pointing to your server. On the Docker host, create a network and the certificate and authentication files:<\/p>\n<pre style=\"font-family:Ubuntu,monospace;font-size:12pt;line-height:1.35;background:#f3f4f6;color:#252b36;padding:11px;border-radius:4px;white-space:pre-wrap;overflow-wrap:anywhere;overflow-x:auto;margin:10px 0 14px;\">docker network create traefik_proxy\r\nsudo mkdir -p \/opt\/traefik\/letsencrypt \/opt\/traefik\/auth\r\nsudo touch \/opt\/traefik\/letsencrypt\/acme.json\r\nsudo chmod 600 \/opt\/traefik\/letsencrypt\/acme.json\r\n# Ubuntu\/Debian: sudo apt install -y apache2-utils\r\nsudo htpasswd -cB \/opt\/traefik\/auth\/users admin<\/pre>\n<p style=\"font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.55;margin:0 0 12px;\">The htpasswd command prompts for a password. Port 80 must be reachable for the Let&#x27;s Encrypt HTTP-01 challenge.<\/p>\n<h3 style=\"font-family:Ubuntu,Arial,sans-serif;font-size:14pt;line-height:1.35;margin:17px 0 9px;\">Step 3. Configure the Traefik v3 stack<\/h3>\n<p style=\"font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.55;margin:0 0 12px;\">Use <strong>Stacks \u2192 Add stack<\/strong> in Portainer and paste this Compose configuration. It is an alternative to the existing template stack, not a second Traefik instance on the same ports.<\/p>\n<pre style=\"font-family:Ubuntu,monospace;font-size:12pt;line-height:1.35;background:#f3f4f6;color:#252b36;padding:11px;border-radius:4px;white-space:pre-wrap;overflow-wrap:anywhere;overflow-x:auto;margin:10px 0 14px;\">services:\r\n  traefik:\r\n    image: traefik:v3.7\r\n    restart: unless-stopped\r\n    command:\r\n      - &quot;--api.dashboard=true&quot;\r\n      - &quot;--api.insecure=false&quot;\r\n      - &quot;--providers.docker=true&quot;\r\n      - &quot;--providers.docker.exposedbydefault=false&quot;\r\n      - &quot;--providers.docker.network=traefik_proxy&quot;\r\n      - &quot;--entrypoints.web.address=:80&quot;\r\n      - &quot;--entrypoints.websecure.address=:443&quot;\r\n      - &quot;--entrypoints.web.http.redirections.entrypoint.to=websecure&quot;\r\n      - &quot;--entrypoints.web.http.redirections.entrypoint.scheme=https&quot;\r\n      - &quot;--certificatesresolvers.le.acme.email=admin@example.com&quot;\r\n      - &quot;--certificatesresolvers.le.acme.storage=\/letsencrypt\/acme.json&quot;\r\n      - &quot;--certificatesresolvers.le.acme.httpchallenge=true&quot;\r\n      - &quot;--certificatesresolvers.le.acme.httpchallenge.entrypoint=web&quot;\r\n    ports:\r\n      - &quot;80:80&quot;\r\n      - &quot;443:443&quot;\r\n    volumes:\r\n      - \/var\/run\/docker.sock:\/var\/run\/docker.sock:ro\r\n      - \/opt\/traefik\/letsencrypt:\/letsencrypt\r\n      - \/opt\/traefik\/auth:\/auth:ro\r\n    networks:\r\n      - traefik_proxy\r\n    labels:\r\n      - &quot;traefik.enable=true&quot;\r\n      - &quot;traefik.http.routers.dashboard.rule=Host(`traefik.example.com`)&quot;\r\n      - &quot;traefik.http.routers.dashboard.entrypoints=websecure&quot;\r\n      - &quot;traefik.http.routers.dashboard.tls=true&quot;\r\n      - &quot;traefik.http.routers.dashboard.tls.certresolver=le&quot;\r\n      - &quot;traefik.http.routers.dashboard.service=api@internal&quot;\r\n      - &quot;traefik.http.routers.dashboard.middlewares=dashboard-auth&quot;\r\n      - &quot;traefik.http.middlewares.dashboard-auth.basicauth.usersfile=\/auth\/users&quot;\r\nnetworks:\r\n  traefik_proxy:\r\n    external: true<\/pre>\n<p style=\"font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.55;margin:0 0 12px;\">Replace admin@example.com with your email and traefik.example.com with your dashboard domain. The external Docker network must already exist. This example is designed for Docker Engine in standalone mode and keeps certificates in a persistent directory.<\/p>\n<p style=\"font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.55;margin:0 0 12px;\"><strong>Security: a read-only docker.sock mount still exposes sensitive Docker API information. For higher-security environments, use a restricted Docker Socket Proxy. Do not publish port 8080.<\/strong><\/p>\n<h3 style=\"font-family:Ubuntu,Arial,sans-serif;font-size:14pt;line-height:1.35;margin:17px 0 9px;\">Step 4. Open the protected dashboard<\/h3>\n<p style=\"font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.55;margin:0 0 12px;\">Deploy the stack, then open <strong>https:\/\/traefik.example.com\/dashboard\/<\/strong> and sign in using the credentials created with htpasswd. Check the HTTP routers and services.<\/p>\n<p style=\"margin:12px 0 15px\"><img decoding=\"async\" src=\"https:\/\/unihost.com\/help\/wp-content\/uploads\/2025\/09\/Screenshot-from-2025-09-30-14-57-46.png\" alt=\"Traefik Dashboard with HTTP routers and entrypoints\" loading=\"lazy\" style=\"max-width:100%;height:auto;display:block;\" title=\"How to Install Traefik Reverse Proxy with Portainer - Image 4\"><\/p>\n<h3 style=\"font-family:Ubuntu,Arial,sans-serif;font-size:14pt;line-height:1.35;margin:17px 0 9px;\">Step 5. Publish a Ghost container with Docker labels<\/h3>\n<p style=\"font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.55;margin:0 0 12px;\">Attach your application to the same traefik_proxy network and add labels. For Ghost, the internal HTTP port is 2368. The following fragment must be merged into the existing Ghost stack, keeping its image, database and persistent volumes:<\/p>\n<pre style=\"font-family:Ubuntu,monospace;font-size:12pt;line-height:1.35;background:#f3f4f6;color:#252b36;padding:11px;border-radius:4px;white-space:pre-wrap;overflow-wrap:anywhere;overflow-x:auto;margin:10px 0 14px;\">services:\r\n  ghost:\r\n    # Keep the existing image, database and volume settings\r\n    networks:\r\n      - traefik_proxy\r\n    labels:\r\n      - &quot;traefik.enable=true&quot;\r\n      - &quot;traefik.docker.network=traefik_proxy&quot;\r\n      - &quot;traefik.http.routers.ghost.rule=Host(`blog.example.com`)&quot;\r\n      - &quot;traefik.http.routers.ghost.entrypoints=websecure&quot;\r\n      - &quot;traefik.http.routers.ghost.tls=true&quot;\r\n      - &quot;traefik.http.routers.ghost.tls.certresolver=le&quot;\r\n      - &quot;traefik.http.services.ghost.loadbalancer.server.port=2368&quot;\r\nnetworks:\r\n  traefik_proxy:\r\n    external: true<\/pre>\n<p style=\"font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.55;margin:0 0 12px;\">For Odoo, use its application port (typically 8069) and the relevant Odoo proxy configuration. See the related Ghost and Odoo Portainer guides.<\/p>\n<h2 style=\"font-family:Ubuntu,Arial,sans-serif;font-size:18pt;line-height:1.3;margin:23px 0 12px;\">Verify<\/h2>\n<p style=\"font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.55;margin:0 0 12px;\">Check the container, dashboard, HTTP to HTTPS redirect and certificate:<\/p>\n<pre style=\"font-family:Ubuntu,monospace;font-size:12pt;line-height:1.35;background:#f3f4f6;color:#252b36;padding:11px;border-radius:4px;white-space:pre-wrap;overflow-wrap:anywhere;overflow-x:auto;margin:10px 0 14px;\">docker ps\r\ndocker logs --tail 50 traefik\r\ncurl -I http:\/\/blog.example.com\r\ncurl -I https:\/\/blog.example.com<\/pre>\n<p style=\"font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.55;margin:0 0 12px;\">The HTTP request should redirect to HTTPS. The HTTPS request should succeed with a trusted certificate, and the router should appear in the dashboard.<\/p>\n<h2 style=\"font-family:Ubuntu,Arial,sans-serif;font-size:18pt;line-height:1.3;margin:23px 0 12px;\">Troubleshooting<\/h2>\n<h3 style=\"font-family:Ubuntu,Arial,sans-serif;font-size:14pt;line-height:1.35;margin:17px 0 9px;\">Traefik returns 404<\/h3>\n<p style=\"font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.55;margin:0 0 12px;\">Check the Host() rule, traefik.enable label, selected entrypoint, target port and shared Docker network.<\/p>\n<h3 style=\"font-family:Ubuntu,Arial,sans-serif;font-size:14pt;line-height:1.35;margin:17px 0 9px;\">Let&#x27;s Encrypt does not issue a certificate<\/h3>\n<p style=\"font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.55;margin:0 0 12px;\">Verify public DNS, inbound TCP 80\/443, the ACME email, writable acme.json and Traefik logs. Wildcard certificates require DNS-01, not HTTP-01.<\/p>\n<h3 style=\"font-family:Ubuntu,Arial,sans-serif;font-size:14pt;line-height:1.35;margin:17px 0 9px;\">Port 80 or 443 is already in use<\/h3>\n<p style=\"font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.55;margin:0 0 12px;\">Check whether Nginx, Apache, Nginx Proxy Manager or another Traefik instance occupies the port. Only one process can bind the same host port.<\/p>\n<h3 style=\"font-family:Ubuntu,Arial,sans-serif;font-size:14pt;line-height:1.35;margin:17px 0 9px;\">Dashboard access fails<\/h3>\n<p style=\"font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.55;margin:0 0 12px;\">Verify the dashboard DNS, credentials file, HTTPS router and the \/dashboard\/ path. Keep api.insecure disabled.<\/p>\n<h2 style=\"font-family:Ubuntu,Arial,sans-serif;font-size:18pt;line-height:1.3;margin:23px 0 12px;\">FAQ<\/h2>\n<h3 style=\"font-family:Ubuntu,Arial,sans-serif;font-size:14pt;line-height:1.35;margin:17px 0 9px;\">Traefik or Nginx Proxy Manager: which should I choose?<\/h3>\n<p style=\"font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.55;margin:0 0 12px;\">Traefik is convenient for Docker labels and automated routing; Nginx Proxy Manager offers a graphical interface for configuring proxy hosts.<\/p>\n<h3 style=\"font-family:Ubuntu,Arial,sans-serif;font-size:14pt;line-height:1.35;margin:17px 0 9px;\">How do I protect the Traefik dashboard?<\/h3>\n<p style=\"font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.55;margin:0 0 12px;\">Enable HTTPS and Basic Authentication, restrict access where possible and keep api.insecure=false.<\/p>\n<h3 style=\"font-family:Ubuntu,Arial,sans-serif;font-size:14pt;line-height:1.35;margin:17px 0 9px;\">Why is the Let&#x27;s Encrypt certificate not issued?<\/h3>\n<p style=\"font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.55;margin:0 0 12px;\">Check DNS records, inbound port 80, ACME configuration and the Traefik logs.<\/p>\n<h3 style=\"font-family:Ubuntu,Arial,sans-serif;font-size:14pt;line-height:1.35;margin:17px 0 9px;\">Can I get a wildcard certificate?<\/h3>\n<p style=\"font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.55;margin:0 0 12px;\">Yes, but wildcard certificates require the DNS-01 challenge with a supported DNS provider.<\/p>\n<h2 style=\"font-family:Ubuntu,Arial,sans-serif;font-size:18pt;line-height:1.3;margin:23px 0 12px;\">Related Articles<\/h2>\n<ul style=\"list-style:disc outside;padding-left:26px;margin:8px 0 15px;\">\n<li style=\"display:list-item;font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.5;margin:5px 0\"><a href=\"https:\/\/unihost.com\/help\/what-is-portainer\/\">What is Portainer?<\/a><\/li>\n<li style=\"display:list-item;font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.5;margin:5px 0\"><a href=\"https:\/\/unihost.com\/help\/installing-ghost-cms-with-portainer\/\">Install Ghost CMS with Portainer<\/a><\/li>\n<li style=\"display:list-item;font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.5;margin:5px 0\"><a href=\"https:\/\/unihost.com\/help\/installing-odoo-with-portainer\/\">Install Odoo with Portainer<\/a><\/li>\n<li style=\"display:list-item;font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.5;margin:5px 0\"><a href=\"https:\/\/unihost.com\/help\/nginx-proxy-manager\/\">Nginx Proxy Manager<\/a><\/li>\n<\/ul>\n<h3 style=\"font-family:Ubuntu,Arial,sans-serif;font-size:14pt;line-height:1.35;margin:17px 0 9px;\">Deploy Docker applications with Unihost<\/h3>\n<p style=\"font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.55;margin:0 0 12px;\">Use ready-made Portainer templates or choose a VPS for your Docker infrastructure.<\/p>\n<ul style=\"list-style:disc outside;padding-left:26px;margin:8px 0 15px;\">\n<li style=\"display:list-item;font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.5;margin:5px 0\"><a href=\"https:\/\/unihost.com\/solutions\/\">Ready-made solutions<\/a><\/li>\n<li style=\"display:list-item;font-family:Ubuntu,Arial,sans-serif;font-size:12pt;line-height:1.5;margin:5px 0\"><a href=\"https:\/\/unihost.com\/vps\/\">UnihostVPS<\/a><\/li>\n<\/ul>\n<\/div>\n<p><script type=\"application\/ld+json\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"headline\":\"How to Install Traefik Reverse Proxy with Portainer\",\"inLanguage\":\"en\",\"author\":{\"@type\":\"Organization\",\"name\":\"Unihost\"},\"publisher\":{\"@type\":\"Organization\",\"name\":\"Unihost\",\"url\":\"https:\/\/unihost.com\/\"},\"dateModified\":\"2026-11-06\"},{\"@type\":\"FAQPage\",\"inLanguage\":\"en\",\"mainEntity\":[{\"@type\":\"Question\",\"name\":\"Traefik or Nginx Proxy Manager: which should I choose?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Traefik is convenient for Docker labels and automated routing; Nginx Proxy Manager offers a graphical interface for configuring proxy hosts.\"}},{\"@type\":\"Question\",\"name\":\"How do I protect the Traefik dashboard?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Enable HTTPS and Basic Authentication, restrict access where possible and keep api.insecure=false.\"}},{\"@type\":\"Question\",\"name\":\"Why is the Let's Encrypt certificate not issued?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Check DNS records, inbound port 80, ACME configuration and the Traefik logs.\"}},{\"@type\":\"Question\",\"name\":\"Can I get a wildcard certificate?\",\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Yes, but wildcard certificates require the DNS-01 challenge with a supported DNS provider.\"}}]}]}<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Traefik Reverse Proxy routes Docker containers by domain and can issue free HTTPS certificates with Let&#x27;s Encrypt. Install it from the Unihost application template in Portainer, or deploy the Traefik v3 Compose stack below. Configure DNS and ports 80\/443, enable the Docker provider, protect the dashboard with Basic Authentication, and add labels to publish your [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[158,595,564,167],"tags":[993,1046],"class_list":["post-18759","post","type-post","status-publish","format-standard","hentry","category-dedicated-servers","category-kvm-en","category-cloud-vps","category-05-control-panels","tag-portainer","tag-traefik-reverse-proxy-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Traefik Reverse Proxy with Docker and Portainer: HTTPS Setup | Unihost<\/title>\n<meta name=\"description\" content=\"Install Traefik in Portainer, route containers by domain with labels and get free Let&#039;s Encrypt certificates automatically. Ready docker-compose and checks.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/unihost.com\/help\/installing-traefik-reverse-proxy-with-portainer\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Traefik Reverse Proxy with Docker and Portainer: HTTPS Setup | Unihost\" \/>\n<meta property=\"og:description\" content=\"Install Traefik in Portainer, route containers by domain with labels and get free Let&#039;s Encrypt certificates automatically. Ready docker-compose and checks.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/unihost.com\/help\/installing-traefik-reverse-proxy-with-portainer\/\" \/>\n<meta property=\"og:site_name\" content=\"Unihost.FAQ\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/unihost\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-09-30T12:11:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-06T11:25:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/minio2.unihost.com\/wp-help2\/2025\/09\/Screenshot-from-2025-09-30-14-57-20.png\" \/>\n<meta name=\"author\" content=\"Unihost Support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@unihost\" \/>\n<meta name=\"twitter:site\" content=\"@unihost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Unihost Support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/installing-traefik-reverse-proxy-with-portainer\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/installing-traefik-reverse-proxy-with-portainer\\\/\"},\"author\":{\"name\":\"Unihost Support\",\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/#\\\/schema\\\/person\\\/153e3eebc0ab48caa06f690ae0abb01f\"},\"headline\":\"How to Install Traefik Reverse Proxy with Portainer\",\"datePublished\":\"2025-09-30T12:11:48+00:00\",\"dateModified\":\"2026-11-06T11:25:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/installing-traefik-reverse-proxy-with-portainer\\\/\"},\"wordCount\":726,\"publisher\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/installing-traefik-reverse-proxy-with-portainer\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/unihost.com\\\/help\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/Screenshot-from-2025-09-30-14-57-20.png\",\"keywords\":[\"Portainer\",\"Traefik Reverse Proxy\"],\"articleSection\":[\"02. Dedicated servers\",\"03. KVM VPS\",\"04. Managed Cloud VPS\",\"05. Control panels\"],\"inLanguage\":\"en\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/installing-traefik-reverse-proxy-with-portainer\\\/\",\"url\":\"https:\\\/\\\/unihost.com\\\/help\\\/installing-traefik-reverse-proxy-with-portainer\\\/\",\"name\":\"Traefik Reverse Proxy with Docker and Portainer: HTTPS Setup | Unihost\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/installing-traefik-reverse-proxy-with-portainer\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/installing-traefik-reverse-proxy-with-portainer\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/unihost.com\\\/help\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/Screenshot-from-2025-09-30-14-57-20.png\",\"datePublished\":\"2025-09-30T12:11:48+00:00\",\"dateModified\":\"2026-11-06T11:25:37+00:00\",\"description\":\"Install Traefik in Portainer, route containers by domain with labels and get free Let's Encrypt certificates automatically. Ready docker-compose and checks.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/installing-traefik-reverse-proxy-with-portainer\\\/#breadcrumb\"},\"inLanguage\":\"en\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/unihost.com\\\/help\\\/installing-traefik-reverse-proxy-with-portainer\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/installing-traefik-reverse-proxy-with-portainer\\\/#primaryimage\",\"url\":\"https:\\\/\\\/unihost.com\\\/help\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/Screenshot-from-2025-09-30-14-57-20.png\",\"contentUrl\":\"https:\\\/\\\/unihost.com\\\/help\\\/wp-content\\\/uploads\\\/2025\\\/09\\\/Screenshot-from-2025-09-30-14-57-20.png\",\"width\":695,\"height\":294},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/installing-traefik-reverse-proxy-with-portainer\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Unihost\",\"item\":\"https:\\\/\\\/unihost.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Help\",\"item\":\"https:\\\/\\\/unihost.com\\\/help\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Install Traefik Reverse Proxy with Portainer\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/#website\",\"url\":\"https:\\\/\\\/unihost.com\\\/help\\\/\",\"name\":\"Unihost.FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/unihost.com\\\/help\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/#organization\",\"name\":\"Unihost\",\"alternateName\":\"Unihost\",\"url\":\"https:\\\/\\\/unihost.com\\\/help\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/unihost.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/minio.png\",\"contentUrl\":\"https:\\\/\\\/unihost.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/minio.png\",\"width\":300,\"height\":300,\"caption\":\"Unihost\"},\"image\":{\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/unihost\\\/\",\"https:\\\/\\\/x.com\\\/unihost\",\"https:\\\/\\\/www.instagram.com\\\/unihost\\\/?hl=en\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/unihost-com\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCITKsxMDnslQY8brN3advgw\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/unihost.com\\\/help\\\/#\\\/schema\\\/person\\\/153e3eebc0ab48caa06f690ae0abb01f\",\"name\":\"Unihost Support\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"caption\":\"Unihost Support\"},\"sameAs\":[\"https:\\\/\\\/unihost.com\\\/\"],\"url\":\"https:\\\/\\\/unihost.com\\\/help\\\/author\\\/support\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Traefik Reverse Proxy with Docker and Portainer: HTTPS Setup | Unihost","description":"Install Traefik in Portainer, route containers by domain with labels and get free Let's Encrypt certificates automatically. Ready docker-compose and checks.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/unihost.com\/help\/installing-traefik-reverse-proxy-with-portainer\/","og_locale":"en_US","og_type":"article","og_title":"Traefik Reverse Proxy with Docker and Portainer: HTTPS Setup | Unihost","og_description":"Install Traefik in Portainer, route containers by domain with labels and get free Let's Encrypt certificates automatically. Ready docker-compose and checks.","og_url":"https:\/\/unihost.com\/help\/installing-traefik-reverse-proxy-with-portainer\/","og_site_name":"Unihost.FAQ","article_publisher":"https:\/\/www.facebook.com\/unihost\/","article_published_time":"2025-09-30T12:11:48+00:00","article_modified_time":"2026-11-06T11:25:37+00:00","og_image":[{"url":"https:\/\/minio2.unihost.com\/wp-help2\/2025\/09\/Screenshot-from-2025-09-30-14-57-20.png","type":"","width":"","height":""}],"author":"Unihost Support","twitter_card":"summary_large_image","twitter_creator":"@unihost","twitter_site":"@unihost","twitter_misc":{"Written by":"Unihost Support","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/unihost.com\/help\/installing-traefik-reverse-proxy-with-portainer\/#article","isPartOf":{"@id":"https:\/\/unihost.com\/help\/installing-traefik-reverse-proxy-with-portainer\/"},"author":{"name":"Unihost Support","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/153e3eebc0ab48caa06f690ae0abb01f"},"headline":"How to Install Traefik Reverse Proxy with Portainer","datePublished":"2025-09-30T12:11:48+00:00","dateModified":"2026-11-06T11:25:37+00:00","mainEntityOfPage":{"@id":"https:\/\/unihost.com\/help\/installing-traefik-reverse-proxy-with-portainer\/"},"wordCount":726,"publisher":{"@id":"https:\/\/unihost.com\/help\/#organization"},"image":{"@id":"https:\/\/unihost.com\/help\/installing-traefik-reverse-proxy-with-portainer\/#primaryimage"},"thumbnailUrl":"https:\/\/unihost.com\/help\/wp-content\/uploads\/2025\/09\/Screenshot-from-2025-09-30-14-57-20.png","keywords":["Portainer","Traefik Reverse Proxy"],"articleSection":["02. Dedicated servers","03. KVM VPS","04. Managed Cloud VPS","05. Control panels"],"inLanguage":"en"},{"@type":"WebPage","@id":"https:\/\/unihost.com\/help\/installing-traefik-reverse-proxy-with-portainer\/","url":"https:\/\/unihost.com\/help\/installing-traefik-reverse-proxy-with-portainer\/","name":"Traefik Reverse Proxy with Docker and Portainer: HTTPS Setup | Unihost","isPartOf":{"@id":"https:\/\/unihost.com\/help\/#website"},"primaryImageOfPage":{"@id":"https:\/\/unihost.com\/help\/installing-traefik-reverse-proxy-with-portainer\/#primaryimage"},"image":{"@id":"https:\/\/unihost.com\/help\/installing-traefik-reverse-proxy-with-portainer\/#primaryimage"},"thumbnailUrl":"https:\/\/unihost.com\/help\/wp-content\/uploads\/2025\/09\/Screenshot-from-2025-09-30-14-57-20.png","datePublished":"2025-09-30T12:11:48+00:00","dateModified":"2026-11-06T11:25:37+00:00","description":"Install Traefik in Portainer, route containers by domain with labels and get free Let's Encrypt certificates automatically. Ready docker-compose and checks.","breadcrumb":{"@id":"https:\/\/unihost.com\/help\/installing-traefik-reverse-proxy-with-portainer\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/unihost.com\/help\/installing-traefik-reverse-proxy-with-portainer\/"]}]},{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/installing-traefik-reverse-proxy-with-portainer\/#primaryimage","url":"https:\/\/unihost.com\/help\/wp-content\/uploads\/2025\/09\/Screenshot-from-2025-09-30-14-57-20.png","contentUrl":"https:\/\/unihost.com\/help\/wp-content\/uploads\/2025\/09\/Screenshot-from-2025-09-30-14-57-20.png","width":695,"height":294},{"@type":"BreadcrumbList","@id":"https:\/\/unihost.com\/help\/installing-traefik-reverse-proxy-with-portainer\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Unihost","item":"https:\/\/unihost.com\/"},{"@type":"ListItem","position":2,"name":"Help","item":"https:\/\/unihost.com\/help\/"},{"@type":"ListItem","position":3,"name":"How to Install Traefik Reverse Proxy with Portainer"}]},{"@type":"WebSite","@id":"https:\/\/unihost.com\/help\/#website","url":"https:\/\/unihost.com\/help\/","name":"Unihost.FAQ","description":"","publisher":{"@id":"https:\/\/unihost.com\/help\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/unihost.com\/help\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"},{"@type":"Organization","@id":"https:\/\/unihost.com\/help\/#organization","name":"Unihost","alternateName":"Unihost","url":"https:\/\/unihost.com\/help\/","logo":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/","url":"https:\/\/unihost.com\/help\/wp-content\/uploads\/2026\/01\/minio.png","contentUrl":"https:\/\/unihost.com\/help\/wp-content\/uploads\/2026\/01\/minio.png","width":300,"height":300,"caption":"Unihost"},"image":{"@id":"https:\/\/unihost.com\/help\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/unihost\/","https:\/\/x.com\/unihost","https:\/\/www.instagram.com\/unihost\/?hl=en","https:\/\/www.linkedin.com\/company\/unihost-com","https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw"]},{"@type":"Person","@id":"https:\/\/unihost.com\/help\/#\/schema\/person\/153e3eebc0ab48caa06f690ae0abb01f","name":"Unihost Support","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","caption":"Unihost Support"},"sameAs":["https:\/\/unihost.com\/"],"url":"https:\/\/unihost.com\/help\/author\/support\/"}]}},"_links":{"self":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/18759","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/comments?post=18759"}],"version-history":[{"count":10,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/18759\/revisions"}],"predecessor-version":[{"id":20497,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/posts\/18759\/revisions\/20497"}],"wp:attachment":[{"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/media?parent=18759"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/categories?post=18759"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unihost.com\/help\/wp-json\/wp\/v2\/tags?post=18759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}