Most of my Dev Containers leverage dockerComposeFile since I work with larger applications like Rails. While trying to take advantage of Tailscale from another machine to my local, I found the following two issues.
The fix for me was easy, simply add a matching compose ports like so to my compose file and everything worked. This makes total sense to me but did want to ask the question on which top level configs should be applied to the main service. My guess is no to this but did want to ask.
services:
app:
ports:
- 3000:3000