From f2c478b6c7180e337a6e52bd0ee5febf6c08ab1f Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Mon, 30 Mar 2026 17:19:49 +0300 Subject: [PATCH] Update application port to 3660 to match server configuration --- .env.example | 2 +- Dockerfile | 2 +- docker-compose.yml | 2 +- src/main.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.env.example b/.env.example index 8e400bf..9e854df 100644 --- a/.env.example +++ b/.env.example @@ -1,5 +1,5 @@ # Server Port | منفذ الخادم -PORT=3001 +PORT=3660 # Environment | بيئة العمل (development, production) NODE_ENV=development diff --git a/Dockerfile b/Dockerfile index 4bd8003..2584282 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,7 +30,7 @@ RUN npm install --only=production COPY --from=builder /usr/src/app/dist ./dist # Expose port | فتح المنفذ -EXPOSE 3001 +EXPOSE 3660 # Command to run | أمر التشغيل CMD ["node", "dist/main"] diff --git a/docker-compose.yml b/docker-compose.yml index 8ff8200..9394d3a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: build: . container_name: ads-analytics-api ports: - - "${PORT:-3001}:3001" + - "${PORT:-3660}:3660" env_file: - .env environment: diff --git a/src/main.ts b/src/main.ts index e939bcf..c8f053e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -29,7 +29,7 @@ async function bootstrap() { // Get ConfigService for port | الحصول على خدمة الإعدادات للمنفذ const configService = app.get(ConfigService); - const port = configService.get('PORT') || 3001; + const port = configService.get('PORT') || 3660; // Security | الحماية // Helmet adds various HTTP headers to protect the app