From 6d7cd97bd54a0c49b81b93b6f6b00c9f19da964e Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Tue, 10 Mar 2026 17:11:38 -0400 Subject: [PATCH] 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. --- docker-compose.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index ebbb0eb..fefe559 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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"