Refactor video streaming feature and update dependencies
- Replaced npm ci with npm install in docker-compose for better package management. - Introduced remote component loading for the VideoStreamingPage with error handling. - Updated the title in index.html to "Experiments Dashboard" for clarity. - Added new video remote service configuration in docker-compose for improved integration. - Removed deprecated files and components related to the video streaming feature to streamline the codebase. - Updated package.json and package-lock.json to include @originjs/vite-plugin-federation for module federation support.
This commit is contained in:
@@ -54,7 +54,7 @@ services:
|
||||
- TZ=America/New_York
|
||||
command: >
|
||||
sh -lc "
|
||||
npm ci;
|
||||
npm install;
|
||||
npm run dev -- --host 0.0.0.0 --port 8080
|
||||
"
|
||||
# Ensure the web container can resolve host.docker.internal on Linux
|
||||
@@ -62,3 +62,21 @@ services:
|
||||
- "host.docker.internal:host-gateway"
|
||||
ports:
|
||||
- "8080:8080"
|
||||
|
||||
video-remote:
|
||||
image: node:20-alpine
|
||||
working_dir: /app
|
||||
environment:
|
||||
- TZ=America/New_York
|
||||
volumes:
|
||||
- ./video-remote:/app
|
||||
command: >
|
||||
sh -lc "
|
||||
npm install;
|
||||
npm run build;
|
||||
npx http-server dist -p 3001 --cors -c-1
|
||||
"
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
ports:
|
||||
- "3001:3001"
|
||||
|
||||
Reference in New Issue
Block a user