vps-demo · 4 vCPU / 16 GB
DevHub

Network

How your projects are reached from the Internet, and how they talk to each other.

Each project is isolated on its own network. Two ways to make them talk: a link (one project reaches another) or a shared network (everyone on it reaches each other).

Shared networks

all its projects reach each other
None. Create a network, then add the projects that need to talk to each other: they stay isolated from the others.

Create a shared network

Only the projects you add are on it: they reach each other by name and stay isolated from the others.

Esc to close

Link two projects

The first reaches the second by its name, on the second’s private network.

Esc to close

Each project’s network

1 private network, with the names and addresses Docker gives
Boutiqueprojectdevhub-stack-boutique · 172.26.0.0/16
api · boutique-api172.26.0.4
cache · boutique-cache172.26.0.2
db · boutique-db172.26.0.3
web · boutique-web172.26.0.5
Each project has its own network: other projects only reach it when linked to it. Containers of the same project reach each other by their short name (db, api…).

Other Docker networks

1 on the server, outside DevHub
NetworkDriverContainers
bridgebridge—