Raftt lets users map ports in the containers to local ports to make the remote environment feel like a local one.
This can be done either by definitions in the Docker Compose file or using the
raftt port map command.
Example use cases for port mapping include:
- Mapping the HTTP port of your web container to allow accessing the app from your browser using localhost.
- Mapping the management port of your DB to allow using the DB's client from your local machine.
Raftt also allows creating reverse port mappings, letting the remote environment access processes opened locally. This is a rare use case, but if you require it, use
raftt port map -r.