feature : Connect front to backend #1
@@ -38,7 +38,7 @@ services:
|
||||
build: ./nest-front
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "5173:5173"
|
||||
- "80:80"
|
||||
|
||||
intra:
|
||||
build: ./nest-intra
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -2,5 +2,5 @@ services:
|
||||
nest-front:
|
||||
build: .
|
||||
ports:
|
||||
- "5173:5173"
|
||||
- "80:80"
|
||||
restart: unless-stopped
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
server {
|
||||
listen 5173;
|
||||
listen 80;
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
|
||||
@@ -7,4 +7,7 @@ export default defineConfig({
|
||||
react(),
|
||||
tailwindcss(),
|
||||
],
|
||||
server: {
|
||||
port: 80,
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user