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:
mindesbunister
2025-07-13 23:11:19 +02:00
parent 79aef75c99
commit 4c2b832205
7 changed files with 423 additions and 14 deletions

View File

@@ -8,18 +8,29 @@ services:
- NODE_ENV=production
- DOCKER_ENV=true
# Load production environment variables
env_file:
- .env.production
# Production command
command: ["npm", "start"]
# Only expose necessary port
ports:
- "3000:3000"
- "9000:3000"
# Remove network_mode: host to avoid port conflicts
# Use bridge network instead
networks:
- default
# Production volumes (no source code mounting)
volumes:
- ./screenshots:/app/screenshots
- ./videos:/app/videos
- ./.env.production:/app/.env
- ./.tradingview-session:/app/.tradingview-session
- ./prisma:/app/prisma
- /tmp/.X11-unix:/tmp/.X11-unix:rw
# Production labels
labels: