Skip to content

Deploy Traefik in HTTPS Mode

Bekker Stacks edited this page Sep 4, 2019 · 2 revisions

Environment Variables Required for HTTPS Mode:

  • EMAIL
  • DOMAIN
  • PROTOCOL

Deploy the Traefik Stack:

$ EMAIL=me@mydomain.com DOMAIN=mydomain.com PROTOCOL=https bash deploy.sh
Username for Traefik UI: ruan
Password for Traefik UI: deploying traefik stack in https mode
Creating network public
Creating config proxy_traefik_htpasswd
Creating service proxy_traefik
Traefik UI is available at:
- https://traefik.mydomain.com

Verify that the Traefik service is running:

$ docker service ls
ID                  NAME                MODE                REPLICAS            IMAGE               PORTS
0wga71zbx1pe        proxy_traefik       replicated          1/1                 traefik:1.7.14      *:80->80/tcp

Navigating to the Traefik Dashboard, after providing your username and password, you should see the Traefik UI:

image

Note: I don't own mydomain.com therefore I am using the traefik default cert, that will be why it's showing not secure.

Clone this wiki locally