quantumtaskai-caprover/dokploy.json
thecyberlearn f048025ff0 Refactor to use environment variables instead of hardcoded values
- Replace hardcoded values in dokploy.json with environment variable substitution
- Make production settings more environment-aware with better defaults
- Add debug logging to help troubleshoot configuration issues
- Update .env.example with Dokploy-specific configuration
- Add deploy-dokploy.sh helper script for easy environment setup
- Improve ALLOWED_HOSTS and CSRF_TRUSTED_ORIGINS handling with fallbacks

This makes the deployment more flexible and follows 12-factor app principles.
2025-09-05 10:33:31 +05:30

26 lines
782 B
JSON

{
"name": "quantum-tasks-ai",
"type": "dockerfile",
"dockerfile": "./Dockerfile.dokploy",
"port": 3000,
"healthCheck": "/health/",
"buildArgs": {},
"buildOptions": ["--no-cache"],
"security": {
"redirectHttpsToHttp": true,
"forceHttps": false
},
"env": {
"PYTHONUNBUFFERED": "1",
"DEBUG": "false",
"SECRET_KEY": "${SECRET_KEY:-production-key-change-this-123456789}",
"ALLOWED_HOSTS": "${ALLOWED_HOSTS:-*}",
"DOKPLOY_PROJECT_NAME": "quantum-tasks-ai",
"SECURE_SSL_REDIRECT": "${SECURE_SSL_REDIRECT:-false}",
"SECURE_PROXY_SSL_HEADER": "HTTP_X_FORWARDED_PROTO,https",
"CSRF_TRUSTED_ORIGINS": "${CSRF_TRUSTED_ORIGINS:-}",
"DATABASE_URL": "${DATABASE_URL:-}",
"DOMAIN": "${DOMAIN:-quamtumtaskai.netcoptech.com}"
}
}