Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apps using dynamic compose are unreachable if started from CLI (traefik disabled) #58

Open
Lancelot-Enguerrand opened this issue Oct 24, 2024 · 0 comments

Comments

@Lancelot-Enguerrand
Copy link

What is the problem

Traefik is always disabled on apps started from runtipi-cli if they use dynamic compose.
This makes these apps unreachable and by extension unusable, you have to restart them from WebUI.

How to reproduce

  1. Choose any app using dynamic compose.
  2. Stop the app if started. (from WebUI or CLI)
  3. Start the app from CLI

You can try with Glance which is very lightweight

What it looks like

As I understand, dynamic compose regenerate docker-compose.yml when apps are started or stopped.
It basically add all network config, most part being traefik labels.

Docker-compose labels when started from CLI ❌

labels:
      generated: true
      traefik.enable: false
      traefik.http.middlewares.glance-web-redirect.redirectscheme.scheme: https
      traefik.http.services.glance.loadbalancer.server.port: "8080"

Docker-compose labels when started from WebUI ✅

labels:
      generated: true
      traefik.enable: true
      traefik.http.middlewares.glance-web-redirect.redirectscheme.scheme: https
      traefik.http.services.glance.loadbalancer.server.port: "8080"
      traefik.http.routers.glance-local-insecure.rule: Host(`glance.${LOCAL_DOMAIN}`)
      traefik.http.routers.glance-local-insecure.entrypoints: web
      traefik.http.routers.glance-local-insecure.service: glance
      traefik.http.routers.glance-local-insecure.middlewares: glance-web-redirect
      traefik.http.routers.glance-local.rule: Host(`glance.${LOCAL_DOMAIN}`)
      traefik.http.routers.glance-local.entrypoints: websecure
      traefik.http.routers.glance-local.service: glance
      traefik.http.routers.glance-local.tls: true

As described this can be observed either from starting or stopping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant