From 3bacc7aad51229283e776a3c166ef7da5ed6d7f4 Mon Sep 17 00:00:00 2001 From: amhsirak Date: Wed, 4 Dec 2024 19:51:29 +0530 Subject: [PATCH] feat: use FRONTEND_PORT and BACKEND_PORT --- docker-compose.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 6d221ce8..4b0d59f1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -45,9 +45,10 @@ services: #dockerfile: server/Dockerfile image: getmaxun/maxun-backend:v0.0.2 ports: - - "8080:8080" + - "${BACKEND_PORT}:${BACKEND_PORT}" env_file: .env environment: + BACKEND_URL: ${BACKEND_URL} # to ensure Playwright works in Docker PLAYWRIGHT_BROWSERS_PATH: /ms-playwright PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 0 @@ -74,8 +75,11 @@ services: #dockerfile: Dockerfile image: getmaxun/maxun-frontend:v0.0.1 ports: - - "5173:5173" + - "${FRONTEND_PORT}:${FRONTEND_PORT}" env_file: .env + environment: + PUBLIC_URL: ${PUBLIC_URL} + BACKEND_URL: ${BACKEND_URL} volumes: - ./:/app # Mount entire frontend app directory for hot reloading - /app/node_modules # Anonymous volume to prevent overwriting node_modules