Question

Help with portainer images and traefik

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


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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