Skip to content

Scaling a service: three api containers

Select an icon to see what it is.

Step 2 of 6

Each replica gets its own IP

All three join shop-net and each gets a different address from the pool. All three also get the alias api. The addresses after the first are examples, and your host may assign different ones.

Replicas on the network (example addresses)

shop-api-1 172.18.0.3:3000 alias: api
shop-api-2 172.18.0.5:3000 alias: api
shop-api-3 172.18.0.6:3000 alias: api