feat(ports): implement additional ports management #930
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new feature to manage additional port mappings for Traefik in a Docker Swarm environment. The main changes include adding a new component for managing ports, updating the server API to handle port configurations, and adding corresponding translations.
New Feature: Manage Additional Ports for Traefik
Component Addition:
apps/dokploy/components/dashboard/settings/web-server/manage-traefik-ports.tsx
: Added a newManageTraefikPorts
component that provides a modal interface for managing additional port mappings for Traefik. This component includes features to add, remove, and edit port mappings, and to persist port configurations through API calls.Integration in UI:
apps/dokploy/components/dashboard/settings/servers/actions/show-traefik-actions.tsx
: Imported and integrated theManageTraefikPorts
component into the existing UI, allowing users to manage ports from the server settings dashboard. [1] [2]API Enhancements:
apps/dokploy/server/api/routers/settings.ts
: Added new API endpointsupdateTraefikPorts
andgetTraefikPorts
to handle updating and retrieving Traefik port configurations. These endpoints integrate with the Traefik setup process. [1] [2]Traefik Setup Update:
packages/server/src/setup/traefik-setup.ts
: Updated theinitializeTraefik
function to include additional ports in the Traefik service configuration. [1] [2]Translations:
apps/dokploy/public/locales/en/settings.json
: Added new translation strings for the port management feature, including labels and messages for the UI.