- Create frontend-sba/.env.example and frontend-pd/.env.example templates - Fix hardcoded allowedHosts in nuxt.config.ts (now reads NUXT_ALLOWED_HOSTS) - Add NUXT_ALLOWED_HOSTS support to frontend-pd/nuxt.config.ts - Update docker-compose.yml with missing env vars: - FRONTEND_URL, DISCORD_SERVER_REDIRECT_URI - ALLOWED_DISCORD_IDS, WS_HEARTBEAT_INTERVAL, WS_CONNECTION_TIMEOUT - NUXT_ALLOWED_HOSTS for both frontends - Create docker-compose.prod.yml for production overrides - Update root .env.example with new variables - Add "Multi-Domain Deployment" section to README.md with checklist - Update all CLAUDE.md files with environment configuration docs - Remove obsolete 'version' attribute from docker-compose files 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
29 lines
539 B
YAML
29 lines
539 B
YAML
# Production overrides for Paper Dynasty Game Engine
|
|
# Usage: docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d
|
|
|
|
services:
|
|
backend:
|
|
build:
|
|
target: production
|
|
environment:
|
|
- APP_ENV=production
|
|
- DEBUG=false
|
|
restart: always
|
|
|
|
frontend-sba:
|
|
build:
|
|
target: production
|
|
environment:
|
|
- NODE_ENV=production
|
|
restart: always
|
|
|
|
frontend-pd:
|
|
build:
|
|
target: production
|
|
environment:
|
|
- NODE_ENV=production
|
|
restart: always
|
|
|
|
redis:
|
|
restart: always
|