I've used Gitpod (https://www.gitpod.io/) for this same scenario and it's available for anyone, way cheaper than Github Codespaces (possibly free depending on your usage), and it works really, really well. It felt like coding in the future.
We're starting to set up Gitpod for LAMP apps (e.g. Drupal), and it seems to work well with docker-in-docker running each part of that stack in their respective containers.