Working docker-compose.yaml added. Services start and work.

This commit is contained in:
2026-08-02 13:19:19 +05:00
parent cd3ce0337b
commit 6707a8e27e
12 changed files with 232 additions and 11 deletions
+8 -3
View File
@@ -1,19 +1,24 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// Backend URL for proxy (default to localhost for local dev)
const BACKEND_URL = process.env.BACKEND_URL || 'http://localhost:8000'
export default defineConfig({
plugins: [react()],
server: {
proxy: {
'/api': {
target: 'http://localhost:8000',
target: BACKEND_URL,
changeOrigin: true,
secure: false,
},
'/ws': {
target: 'ws://localhost:8000',
target: BACKEND_URL.replace(/^http/, 'ws'),
ws: true,
changeOrigin: true,
secure: false,
},
},
},
})
})