Skip to content

feat(docker): add service discovery via tsbridge container labels - #201

Open
aareman wants to merge 1 commit into
jtdowney:mainfrom
aareman:main
Open

feat(docker): add service discovery via tsbridge container labels#201
aareman wants to merge 1 commit into
jtdowney:mainfrom
aareman:main

Conversation

@aareman

@aareman aareman commented Apr 27, 2026

Copy link
Copy Markdown

Add ability to define services on the tsbridge container itself, enabling auto-discovery of matching containers even without tsbridge.enabled=true.

This is useful for dynamically created containers (like Nextcloud AIO) where adding labels to service containers isn't possible.

Changes:

  • Add parseServiceNames() to extract service names from tsbridge container labels
  • Add findContainersByNames() to discover containers by name
  • Modify Load() to merge services from both discovery mechanisms
  • Traditional discovery (tsbridge.enabled=true) takes precedence
  • Add comprehensive unit tests
  • Update documentation with examples and use cases

Closes: docker-service-discovery

Add ability to define services on the tsbridge container itself, enabling
auto-discovery of matching containers even without tsbridge.enabled=true.

This is useful for dynamically created containers (like Nextcloud AIO) where
adding labels to service containers isn't possible.

Changes:
- Add parseServiceNames() to extract service names from tsbridge container labels
- Add findContainersByNames() to discover containers by name
- Modify Load() to merge services from both discovery mechanisms
- Traditional discovery (tsbridge.enabled=true) takes precedence
- Add comprehensive unit tests
- Update documentation with examples and use cases

Closes: docker-service-discovery
@aareman

aareman commented May 15, 2026

Copy link
Copy Markdown
Author

I have been running this on a home-lab setup for 2 weeks and it has been working well.

@aareman

aareman commented Jun 10, 2026

Copy link
Copy Markdown
Author

Following up about this. Haven't had any issues on my home-lab setup.

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

Successfully merging this pull request may close these issues.

1 participant