Question

Help with portainer images and traefik

Posted June 1, 2021 42 views
Ubuntu 20.04

Hello,
i followed this guide
https://www.digitalocean.com/community/tutorials/how-to-use-traefik-v2-as-a-reverse-proxy-for-docker-containers-on-ubuntu-20-04

got my domain pointing to traefik perfectly thank you.

now how do i add traefik to my already installed portainer images, such as plex, phpmyadmin, ombi so that i can access them via my domain.?

I can see in portainer that i can add another network within portainer so i can add WEB to it there howerver do i need to make a new .toml for each one and point a volume there? is so what should be in the .toml

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hello,

I think that as described in Step 3, you just need to specify the Traefik labels in the docker-compose.yaml file for your services:

    labels:
      - traefik.http.routers.blog.rule=Host(`blog.your_domain`)
      - traefik.http.routers.blog.tls=true
      - traefik.http.routers.blog.tls.certresolver=lets-encrypt
      - traefik.port=80
by Keith Thompson
In this tutorial, you'll learn how to run multiple web applications on the same Docker host using the reverse proxy Traefik to route requests to separate containers and review container health on a monitoring dashboard.