First_Commit
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM node:18-alpine
|
||||
FROM node:20-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@@ -26,12 +26,12 @@ export default defineConfig({
|
||||
},
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
port: 80,
|
||||
port: 90,
|
||||
strictPort: true,
|
||||
allowedHosts: ['mygta.ensup-adm.net', 'localhost'],
|
||||
allowedHosts: ['mygta-dev.ensup-adm.net', 'localhost'],
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://gta-backend:3000',
|
||||
target: 'http://backend:3004',
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
configure: (proxy, options) => {
|
||||
@@ -39,7 +39,7 @@ export default defineConfig({
|
||||
console.log('Proxy error:', err);
|
||||
});
|
||||
proxy.on('proxyReq', (proxyReq, req, res) => {
|
||||
console.log('Proxying:', req.method, req.url, '-> http://gta-backend:3000');
|
||||
console.log('Proxying:', req.method, req.url, '-> http://backend:3004');
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -48,6 +48,6 @@ export default defineConfig({
|
||||
});
|
||||
VITECONFIG
|
||||
|
||||
EXPOSE 80
|
||||
EXPOSE 90
|
||||
|
||||
CMD ["npx", "vite", "--host", "0.0.0.0", "--port", "80"]
|
||||
CMD ["npx", "vite", "--host", "0.0.0.0", "--port", "90"]
|
||||
|
||||
Reference in New Issue
Block a user