From 3134cb997bd24cb0c58027210dbe449880199adb Mon Sep 17 00:00:00 2001 From: Haroun EL ALAMI Date: Fri, 25 Oct 2024 09:49:56 +0200 Subject: [PATCH] chore(uib): update production docker-compose.yml (#2897) As all traffic must be through the uib-proxy, we should not expose ports of uib and bonita. --- .../ui-builder/production/docker-compose.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/modules/applications/examples/ui-builder/production/docker-compose.yml b/modules/applications/examples/ui-builder/production/docker-compose.yml index 9391e1804e..ff7b6b7ac9 100644 --- a/modules/applications/examples/ui-builder/production/docker-compose.yml +++ b/modules/applications/examples/ui-builder/production/docker-compose.yml @@ -5,13 +5,9 @@ services: container_name: bonita-ui-builder environment: BONITA_DEV_MODE: false - BONITA_API_URL: http://host.docker.internal:8080/bonita/API + BONITA_API_URL: http://bonita-app:8080/bonita/API APPSMITH_ENCRYPTION_PASSWORD: APPSMITH_ENCRYPTION_SALT: - ports: - - "8090:80" - extra_hosts: - - "host.docker.internal:host-gateway" depends_on: bonita-app: condition: service_healthy @@ -22,8 +18,11 @@ services: ports: - "443:443" - "80:80" - extra_hosts: - - "host.docker.internal:host-gateway" + environment: + - BONITA_HOST=bonita-app + - BONITA_PORT=8080 + - UIB_HOST=bonita-ui-builder + - UIB_PORT=80 bonita-app: # Replace below with your image name and version, as built following @@ -32,8 +31,4 @@ services: volumes: - :/opt/bonita_lic environment: - - - ports: - - "8080:8080" - extra_hosts: - - "host.docker.internal:host-gateway" \ No newline at end of file + - \ No newline at end of file