Skip to content

Conversation

@andrasbacsai
Copy link
Member

Changes

  • Added serviceNameHash() function to generate stable 4-character hashes for service names
  • Modified fqdnLabelsForTraefik() to normalize dots to hyphens and append hash suffix to Traefik labels
  • Updated applicationParser() to store original service names in docker_compose_domains instead of transformed names
  • This prevents collisions between services like "api.test" and "api-test"

Issues

  • Fixes service name collision bug in Docker Compose deployments

andrasbacsai and others added 2 commits December 1, 2025 13:48
Services like "api.test" and "api-test" now create unique Traefik labels
by normalizing dots to hyphens and adding a 4-char hash suffix. Update
docker_compose_domains storage to use original service names instead of
transformed names to prevent key collisions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
- Add migration to convert existing docker_compose_domains to use original service names
- Add comprehensive unit tests for Traefik label normalization with service names containing dots
- Tests verify hash uniqueness and label structure correctness

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@andrasbacsai andrasbacsai force-pushed the fix-compose-service-name-collision branch from c6fdd4f to dc6843b Compare December 1, 2025 12:48
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.

2 participants