aheissenberger / docker-compose-port-forward

Example App Port forward with VS Code DevContainer and Docker Compose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example App / Port forward with DevContainer and Docker Compose

Change devcontainer.json to allow to forwarding ports (forwardPorts) with docker compose docker desktop or vscode cloud

You need multiple containers for your development setup and use a docker-compose.yml file to declare the requirements for your services. After starting the setup you see the port for one service in the VSCode ports tab but none of the ports from the other service containers.

This is the example code for the blog post Port forward with DevContainer and Docker Compose fails

Working Setup with Service B and Postgress ports forwarded with the devcontainer.json forwardPorts:[] directive!

C4 Application Component Diagram

License

Distributed under the "bsd-2-clause" License. See LICENSE.txt for more information.

About

Example App Port forward with VS Code DevContainer and Docker Compose

License:BSD 2-Clause "Simplified" License


Languages

Language:Dockerfile 74.2%Language:JavaScript 25.8%