You would just add a ports line to the docker-compose configuration, but keep in mind then you’re exposing MySQL to the network, which isn’t intended and isn’t very secure. You should at the very least ensure you run a firewall too to restrict access to just authorised hosts.
You can make that configuration persist by creating a docker-compose.override.yml file and adding your override there - for example: