spec icon indicating copy to clipboard operation
spec copied to clipboard

Should forwardPorts Automatically Apply To dockerComposeFIle & service?

Open metaskills opened this issue 3 years ago • 0 comments

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.

  • https://github.com/microsoft/vscode-remote-release/issues/1009
  • https://github.com/tailscale/tailscale/issues/5813

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

metaskills avatar May 28 '23 16:05 metaskills