feat: Fix TypeScript errors and implement Docker Compose V2 deployment
- Fix TypeScript errors in enhanced-screenshot.ts and tradingview-automation.ts - Add proper type assertions for page.screenshot() path parameter - Ensure compatibility with strict TypeScript compilation - Verify Docker Compose V2 deployment working on port 9000 - Application successfully containerized and production-ready - All build processes pass without TypeScript errors Ready for easy deployment on any machine with Docker & Docker Compose V2
This commit is contained in:
@@ -17,7 +17,7 @@ services:
|
||||
# Playwright/TradingView automation settings
|
||||
- CHROMIUM_PATH=/usr/bin/chromium
|
||||
- DISABLE_CHROME_SANDBOX=true
|
||||
- DISPLAY=${DISPLAY:-:0}
|
||||
- DISPLAY=$${DISPLAY:-:0}
|
||||
# CAPTCHA handling
|
||||
- ALLOW_MANUAL_CAPTCHA=true
|
||||
# Database configuration
|
||||
@@ -36,8 +36,14 @@ services:
|
||||
# X11 forwarding for GUI display (when ALLOW_MANUAL_CAPTCHA=true)
|
||||
- /tmp/.X11-unix:/tmp/.X11-unix:rw
|
||||
|
||||
# Port mapping - expose Next.js on port 9000
|
||||
ports:
|
||||
- "9000:3000"
|
||||
|
||||
# X11 and display configuration for manual CAPTCHA solving
|
||||
network_mode: host
|
||||
# Use bridge network instead of host for better port management
|
||||
networks:
|
||||
- default
|
||||
privileged: true
|
||||
|
||||
# Health check
|
||||
|
||||
Reference in New Issue
Block a user