fix: remove host port mapping from ae_app service
With scale > 1, multiple replicas cannot bind to the same host port.
ae_app does not need a host port -- nginx routes to it internally via
the Docker service name 'ae_app:3000' with round-robin load balancing.
Removed ports: '${AE_APP_NODE_PORT}:3000' to fix the port conflict.
This commit is contained in:
@@ -146,8 +146,9 @@ services:
|
|||||||
scale: ${AE_APP_REPLICAS:-1}
|
scale: ${AE_APP_REPLICAS:-1}
|
||||||
env_file:
|
env_file:
|
||||||
- ./.env
|
- ./.env
|
||||||
ports:
|
# No host port mapping — nginx routes to ae_app:3000 on the internal network.
|
||||||
- "${AE_APP_NODE_PORT}:3000"
|
# With scale > 1, all replicas share the same service name and Docker
|
||||||
|
# round-robins between them. A static host port would conflict.
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
srv-nyx.oneskyit.com: "104.237.143.4"
|
srv-nyx.oneskyit.com: "104.237.143.4"
|
||||||
dev-app.oneskyit.com: "104.237.143.4"
|
dev-app.oneskyit.com: "104.237.143.4"
|
||||||
|
|||||||
Reference in New Issue
Block a user