# Docker Compose + Phase B — copy to .env in repo root # Migrations manuelles (base vide ou après changement de schéma) : npm run db:migrate # Frontend: cd prediqo_web && npm run dev # PostgreSQL (host — les conteneurs Docker utilisent host.docker.internal, PAS localhost) POSTGRES_USER=postgres POSTGRES_PASSWORD=your_postgres_password POSTGRES_DB=games_platform_db POSTGRES_PORT=5432 PGBOUNCER_PORT=6432 # URL pour Docker (backend dans les conteneurs) — obligatoire sur VPS : DATABASE_URL=postgresql://postgres:your_postgres_password@host.docker.internal:5432/games_platform_db # URL pour psql / outils sur l'hôte uniquement : # DATABASE_URL=postgresql://postgres:your_postgres_password@localhost:5432/games_platform_db DATABASE_PASSWORD=your_postgres_password # Phase B ports BACKEND_PORT=4000 WS_PORT=4001 REDIS_PORT=6379 WORKER_ID=worker-1 # Backend secrets JWT_SECRET=your-super-secret-jwt-key-min-32-chars JWT_ACCESS_EXPIRY=15m JWT_REFRESH_EXPIRY=7d ENCRYPTION_KEY=0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef PLATFORM_MNEMONIC=word1 word2 ... word24 # Blockchain (testnet example) TRON_NODE_URL=https://api.shasta.trongrid.io TRON_CONFIRMATIONS=3 USDT_TRC20_CONTRACT= POLYGON_RPC_URL=https://rpc-amoy.polygon.technology POLYGON_CONFIRMATIONS=8 USDC_POLYGON_CONTRACT= ALLOW_WITHDRAWALS=false RATE_LIMIT_MAX=2000 # Ports dédiés Prediqo (n'utilise pas 80/443 du VPS) PREDIQO_HTTP_PORT=9080 PREDIQO_HTTPS_PORT=9443 CERTBOT_EMAIL=your-email@example.com CERTBOT_DOMAIN1=prediqo.redirectme.net APP_PUBLIC_URL=https://prediqo.redirectme.net:9443 INITIAL_SETUP_TOKEN=your-random-setup-token-min-32-chars VITE_API_BASE_URL=https://prediqo.redirectme.net:9443 VITE_WS_ENABLED=true VITE_WS_URL=wss://prediqo.redirectme.net:9443/ws/v1/games/candle-predict # Phase B feature flags (used by Docker services) REDIS_ENABLED=true REDIS_ROUND_CACHE=true BET_ASYNC=true WS_ENABLED=true WS_PATH=/ws/v1/games/candle-predict # Optional: containerized PostgreSQL instead of host # docker compose --profile docker-db up -d