Docker Error: Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:8102 -> 0.0.0.0:0: listen tcp 0.0.0.0:8102: bind: Only one usage of each socket address is normally permitted

Wappler Version : 5.8.2
Operating System : Windows 11 22H2
Server Model: NodeJs
Database Type: Postgres
Hosting Type: Docker Localhost

Expected behavior

What do you think should happen?
The dockers instances should get initiated and deployed.

Actual behavior

What actually happens?
Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:8102 -> 0.0.0.0:0: listen tcp 0.0.0.0:8102: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.

How to reproduce

Create a new project with any template,
but in “Targets”,
for WebServer Nodejs,
enter 2 or more “replicas”.

Anyone tried this?

2 or more replicas won’t work in the local development environment, you’d need a reverse proxy (e.g.: Traefik) to load balance between the different replicas. For the local environment, since no reverse proxy is present/supported by Wappler, the NodeJS app binds to a port, so a 2nd replica can’t bind to the same port and hence the error

It’s very unlikely you’ll see a fix for this