Using remote byebug instance with docker-compose
See this previous answer. Do note that running your services in detached
mode isn't necessary. Also when attaching to the rails container, it'll appear as if nothing happened in your terminal until you make a request to the rails application.