- Add Next.js app structure with base configs, linting, and formatting - Implement LiveKit Meet page, types, and utility functions - Add Docker, Compose, and deployment scripts for backend and token server - Provide E2E and smoke test scaffolding with Puppeteer and Playwright helpers - Include CSS modules and global styles for UI - Add postMessage and studio integration utilities - Update package.json with dependencies and scripts for development and testing
39 lines
1.4 KiB
YAML
39 lines
1.4 KiB
YAML
services:
|
|
backend-api:
|
|
build:
|
|
context: ../packages/backend-api
|
|
dockerfile: Dockerfile
|
|
image: avanzacast-backend-api:latest
|
|
container_name: avanzacast-backend-api
|
|
restart: unless-stopped
|
|
# En entornos Linux locales podemos usar network_mode: host para que el contenedor vea redis local y otros servicios
|
|
network_mode: "host"
|
|
environment:
|
|
- NODE_ENV=production
|
|
- LIVEKIT_API_KEY=${LIVEKIT_API_KEY:-devkey}
|
|
- LIVEKIT_API_SECRET=${LIVEKIT_API_SECRET:-secret}
|
|
- LIVEKIT_WS_URL=${LIVEKIT_WS_URL:-wss://livekit-server.bfzqqk.easypanel.host}
|
|
- REDIS_URL=${REDIS_URL:-redis://127.0.0.1:6379}
|
|
- INCLUDE_TOKEN_IN_REDIRECT=${INCLUDE_TOKEN_IN_REDIRECT:-1}
|
|
- FRONTEND_URLS=${FRONTEND_URLS:-}
|
|
- VITE_BROADCASTPANEL_URL=${VITE_BROADCASTPANEL_URL:-https://avanzacast-broadcastpanel.bfzqqk.easypanel.host}
|
|
- VITE_STUDIO_URL=${VITE_STUDIO_URL:-https://avanzacast-studio.bfzqqk.easypanel.host}
|
|
healthcheck:
|
|
test: ["CMD-SHELL","curl -f http://localhost:4000/health || exit 1"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
# Optional: define local redis service if you want containerized redis (commented by default)
|
|
# redis:
|
|
# image: redis:7-alpine
|
|
# restart: unless-stopped
|
|
# ports:
|
|
# - "6379:6379"
|
|
# volumes:
|
|
# - redis-data:/data
|
|
|
|
#volumes:
|
|
# redis-data:
|
|
# driver: local
|