Adding Traefik Proxy Network to Agent Containers Automatically

Hi :waving_hand:

Thank you for the excellent work on this project! :folded_hands:

I have a feature request or perhaps a configuration question regarding Docker network integration. :sweat_smile:

Context

I’m running an OpenCore deployment in a Docker Swarm cluster. My setup includes:

  • A Traefik reverse proxy deployed in its own stack.
  • OpenCore deployed in a separate stack.
  • Traefik is configured to listen only on a dedicated proxy network.

OpenCore is successfully deploying agent containers and adding the appropriate Traefik labels. However, these containers are only connected to the network defined in the OpenCore stack (e.g., opencore_backend), and not to the proxy network that Traefik is monitoring.

Problem

Because Traefik is not aware of containers on the opencore_backend network, it cannot route traffic to the agent containers started by OpenCore. I could solve this by updating my traefik configuration in the cluster, but it seems wrong to me.

Request/Question

Is there currently a way to configure OpenCore to connect new agent containers to an additional Docker network, such as the proxy network used by Traefik automatically?

If this is not currently supported, I’d like to propose it as a feature request. Ideally, this could be implemented via:

  • A configuration setting for additional networks to attach agents to.
  • Or, dynamic network detection and attachment based on label rules? I have traefik.docker.network=proxy as a label on opencore.

Additional Info

  • Docker Swarm mode is in use.
  • Both stacks (traefik and opencore) define their own overlay networks.

Thanks again for your hard work! I’d be happy to help test or provide additional logs or configurations if needed.

Best regards Christian

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.