feat: Implement Docker-based deployment for ClinicPro on Coolify

- Added Dockerfile for multi-stage build including PHP, Node.js, and Nginx.
- Created docker-compose.coolify.yaml for service orchestration with app, workers, MariaDB, and Redis.
- Introduced entrypoint.sh for initialization tasks like JWT key generation and database migrations.
- Configured Nginx with default.conf for handling requests and routing to PHP-FPM.
- Added php.ini with production settings and opcache configuration.
- Set up supervisord.conf to manage PHP-FPM and Nginx processes.
- Created frontend-domains.json for managing allowed frontend domains.
- Added gen-cors-env.php script to generate CORS environment variables from frontend domains.
- Updated framework.yaml to configure trusted proxies and headers.
- Created .dockerignore to exclude unnecessary files from the Docker context.
- Added .env.coolify.example for environment variable configuration.
- Documented deployment steps and troubleshooting in coolify.md.
This commit is contained in:
hamed
2026-06-25 21:27:28 +03:30
parent dfda265af4
commit cffc88db05
13 changed files with 940 additions and 147 deletions
+40
View File
@@ -0,0 +1,40 @@
# Build artifacts & dependencies (rebuilt inside the image)
/node_modules
/vendor
/var
/public/build
/public/bundles
/public/uploads
# VCS & local tooling
/.git
/.gitignore
/.ddev
/.claude
/.agents
/.vscode
/.idea
/.editorconfig
# Tests & static analysis
/tests
/phpunit.dist.xml
/.phpunit.cache
/phpstan.neon
# Local env & secrets
.env.local
.env.*.local
/config/jwt/*.pem
# Database dumps & seed data
*.sql
*.sql.gz
# Docs (not needed at runtime)
/docs
/graphify-out
# OS noise
.DS_Store
*.log