From 11708032bd77f53b187667836b8bbdb4263b30e6 Mon Sep 17 00:00:00 2001 From: Thibault Pouch Date: Tue, 3 Mar 2026 09:48:22 +0100 Subject: [PATCH] refactor: update ports to use 80 for front-end services in Docker and Nginx configuration --- docker-compose.yml | 2 +- nest-front/Dockerfile | 2 +- nest-front/docker-compose.yml | 2 +- nest-front/nginx.conf | 2 +- nest-front/vite.config.ts | 3 +++ 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index bd32c5b..acd6a66 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -38,7 +38,7 @@ services: build: ./nest-front restart: unless-stopped ports: - - "5173:5173" + - "80:80" intra: build: ./nest-intra diff --git a/nest-front/Dockerfile b/nest-front/Dockerfile index 58348d6..0015b92 100644 --- a/nest-front/Dockerfile +++ b/nest-front/Dockerfile @@ -19,7 +19,7 @@ FROM nginx:alpine COPY --from=build /app/dist /usr/share/nginx/html COPY nginx.conf /etc/nginx/nginx.conf.template -EXPOSE 5173 +EXPOSE 80 # API_URL is the backend's public base URL used by nginx proxy_pass. # Set this at runtime in Coolify, e.g. API_URL=https://api.crowmate.fr diff --git a/nest-front/docker-compose.yml b/nest-front/docker-compose.yml index 0428972..09edf0e 100644 --- a/nest-front/docker-compose.yml +++ b/nest-front/docker-compose.yml @@ -2,5 +2,5 @@ services: nest-front: build: . ports: - - "5173:5173" + - "80:80" restart: unless-stopped diff --git a/nest-front/nginx.conf b/nest-front/nginx.conf index 3af20f7..4cfc168 100644 --- a/nest-front/nginx.conf +++ b/nest-front/nginx.conf @@ -1,5 +1,5 @@ server { - listen 5173; + listen 80; root /usr/share/nginx/html; index index.html; diff --git a/nest-front/vite.config.ts b/nest-front/vite.config.ts index c676acd..67a1689 100644 --- a/nest-front/vite.config.ts +++ b/nest-front/vite.config.ts @@ -7,4 +7,7 @@ export default defineConfig({ react(), tailwindcss(), ], + server: { + port: 80, + }, })