this post was submitted on 15 Nov 2023
1 points (100.0% liked)

Portainer

28 readers
0 users here now

Portainer Community Edition is a lightweight service delivery platform for containerized applications that can be used to manage Docker, Swarm, Kubernetes and ACI environments.

founded 1 year ago
MODERATORS
 

Probably a bit of a newb question (and I think I know the answer) but still.....

I want to add labels to my portainer container (to move it behind traefik and authelia) but I obviously can't rebuild from itself.

I also, for some reason, can't find the docker-compose otherwise i'd add them there.

Am I missing something or do I need to rebuild and hope?

top 2 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 1 points 1 year ago (1 children)

The easy solution is to add portainer to Traefik using file provider (so file dynamic configuration). This way also allows to add to Traefik services outside of docker itself, so cockpit for example.

[โ€“] [email protected] 1 points 1 year ago

Awesome, thanks for this - couldn't remember from setting it up but it makes sense that it was just docker run.

Would I be safe to just rebuild a new instance from Portainer itself and just point to the same volumes?