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