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:
Scott Idem
2026-03-10 17:11:38 -04:00
parent 83770ffc00
commit 6d7cd97bd5

View File

@@ -146,8 +146,9 @@ services:
scale: ${AE_APP_REPLICAS:-1}
env_file:
- ./.env
ports:
- "${AE_APP_NODE_PORT}:3000"
# No host port mapping — nginx routes to ae_app:3000 on the internal network.
# With scale > 1, all replicas share the same service name and Docker
# round-robins between them. A static host port would conflict.
extra_hosts:
srv-nyx.oneskyit.com: "104.237.143.4"
dev-app.oneskyit.com: "104.237.143.4"