Files
seedbox-lite-torrent/docker-compose.prod.yml
Salman Qureshi bdd89497fe Add CORS testing script for API endpoints
- Created a new script `test-cors.sh` to test CORS configuration.
- Included tests for OPTIONS preflight request, actual POST request, and health endpoint.
- Utilized curl for making requests to the API with appropriate headers.
2025-08-10 13:51:46 +05:30

29 lines
588 B
YAML

# Production Docker Compose configuration
version: '3.8'
services:
seedbox-backend:
environment:
- NODE_ENV=production
- SERVER_PORT=3001
- SERVER_HOST=0.0.0.0
- FRONTEND_URL=https://<domain>
- ACCESS_PASSWORD=${ACCESS_PASSWORD:-sadsgasgdkjh}
env_file:
- ./server-new/.env.docker
seedbox-frontend:
build:
args:
- VITE_API_BASE_URL=https://apidomain.com
env_file:
- ./client/.env.production
# Enable nginx for production
nginx:
profiles:
- production
ports:
- "80:80"
- "443:443"