Files
trading_bot_v3/docker-compose.yml
mindesbunister de45349baa Restore working dashboard and TradingView analysis
- Fixed layout conflicts by removing minimal layout.tsx in favor of complete layout.js
- Restored original AI Analysis page with full TradingView integration
- Connected enhanced screenshot API to real TradingView automation service
- Fixed screenshot gallery to handle both string and object formats
- Added image serving API route for screenshot display
- Resolved hydration mismatch issues with suppressHydrationWarning
- All navigation pages working (Analysis, Trading, Automation, Settings)
- TradingView automation successfully capturing screenshots from AI and DIY layouts
- Docker Compose v2 compatibility ensured

Working features:
- Homepage with hero section and status cards
- Navigation menu with Trading Bot branding
- Real TradingView screenshot capture
- AI-powered chart analysis
- Multi-layout support (AI + DIY module)
- Screenshot gallery with image serving
- API endpoints for balance, status, screenshots, trading
2025-07-14 14:21:19 +02:00

58 lines
1.6 KiB
YAML

services:
app:
build:
context: .
dockerfile: Dockerfile
args:
JOBS: 8
NODE_OPTIONS: "--max-old-space-size=4096"
restart: unless-stopped
# Base environment variables (common to all environments)
environment:
- DOCKER_ENV=true
- PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
- PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
- TRADINGVIEW_RECORD_VIDEO=true
- TZ=Europe/Berlin
# Playwright/TradingView automation settings
- CHROMIUM_PATH=/usr/bin/chromium
- DISABLE_CHROME_SANDBOX=true
- DISPLAY=$${DISPLAY:-:0}
# CAPTCHA handling
- ALLOW_MANUAL_CAPTCHA=true
# Database configuration
- DATABASE_URL=file:./prisma/dev.db
# Load environment variables from .env file
env_file:
- .env
# Base volumes
volumes:
- ./screenshots:/app/screenshots
- ./videos:/app/videos
- ./.tradingview-session:/app/.tradingview-session
- ./prisma:/app/prisma
# 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
# Use bridge network instead of host for better port management
networks:
- default
privileged: true
# Health check
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:3000/ || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s