refactor: update ports to use 80 for front-end services in Docker and Nginx configuration

This commit is contained in:
Thibault Pouch
2026-03-03 09:48:22 +01:00
parent f54f237dd9
commit 11708032bd
5 changed files with 7 additions and 4 deletions

View File

@@ -38,7 +38,7 @@ services:
build: ./nest-front build: ./nest-front
restart: unless-stopped restart: unless-stopped
ports: ports:
- "5173:5173" - "80:80"
intra: intra:
build: ./nest-intra build: ./nest-intra

View File

@@ -19,7 +19,7 @@ FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/nginx.conf.template 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. # 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 # Set this at runtime in Coolify, e.g. API_URL=https://api.crowmate.fr

View File

@@ -2,5 +2,5 @@ services:
nest-front: nest-front:
build: . build: .
ports: ports:
- "5173:5173" - "80:80"
restart: unless-stopped restart: unless-stopped

View File

@@ -1,5 +1,5 @@
server { server {
listen 5173; listen 80;
root /usr/share/nginx/html; root /usr/share/nginx/html;
index index.html; index index.html;

View File

@@ -7,4 +7,7 @@ export default defineConfig({
react(), react(),
tailwindcss(), tailwindcss(),
], ],
server: {
port: 80,
},
}) })