refactor: change ports to non-standard (backend: 8765, frontend: 4321)
This commit is contained in:
+1
-1
@@ -9,5 +9,5 @@ RUN npm run build
|
||||
FROM nginx:alpine
|
||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
EXPOSE 3000
|
||||
EXPOSE 4321
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
|
||||
+2
-2
@@ -1,9 +1,9 @@
|
||||
server {
|
||||
listen 3000;
|
||||
listen 4321;
|
||||
server_name _;
|
||||
|
||||
resolver 127.0.0.11 valid=10s;
|
||||
set $backend_url http://backend:8000;
|
||||
set $backend_url http://backend:8765;
|
||||
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
@@ -5,9 +5,9 @@ export default defineConfig({
|
||||
plugins: [react()],
|
||||
server: {
|
||||
host: true,
|
||||
port: 3000,
|
||||
port: 4321,
|
||||
proxy: {
|
||||
'/api': 'http://backend:8000',
|
||||
'/api': 'http://backend:8765',
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user