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