Skip to content

Should forwardPorts Automatically Apply To dockerComposeFIle & service? #245

@metaskills

Description

@metaskills

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions