feat: Production-ready Docker infrastructure with Directus CMS
- Add separated Docker Compose architecture (astro/infrastructure/override) - Implement Directus + PostgreSQL with pinned versions (10.12.0/15.5-alpine) - Add comprehensive database safety protections and backup scripts - Configure production-ready NGINX reverse proxy setup - Add container names, labels, and enhanced healthchecks - Remove fallback environment variables for explicit production config - Include log rotation and monitoring improvements Infrastructure deployment: - npm run docker:infrastructure:up (one-time setup) - npm run docker:astro:up (regular deployments) - npm run db:backup/restore/status (database management) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
14
package.json
14
package.json
@@ -21,7 +21,19 @@
|
||||
"docker:down": "docker-compose down",
|
||||
"docker:logs": "docker-compose logs -f",
|
||||
"docker:prod:up": "docker-compose -f docker-compose.prod.yml up -d",
|
||||
"docker:prod:down": "docker-compose -f docker-compose.prod.yml down"
|
||||
"docker:prod:down": "docker-compose -f docker-compose.prod.yml down",
|
||||
"docker:astro:up": "docker-compose -f docker-compose.astro.yml up -d --build",
|
||||
"docker:astro:down": "docker-compose -f docker-compose.astro.yml down",
|
||||
"docker:astro:logs": "docker-compose -f docker-compose.astro.yml logs -f",
|
||||
"docker:infrastructure:up": "docker-compose -f docker-compose.infrastructure.yml up -d",
|
||||
"docker:infrastructure:down": "docker-compose -f docker-compose.infrastructure.yml down",
|
||||
"docker:infrastructure:logs": "docker-compose -f docker-compose.infrastructure.yml logs -f",
|
||||
"docker:dev": "docker-compose up -d",
|
||||
"docker:dev:build": "docker-compose up -d --build",
|
||||
"db:backup": "./scripts/db-safety.sh backup",
|
||||
"db:restore": "./scripts/db-safety.sh restore",
|
||||
"db:reset": "./scripts/db-safety.sh reset",
|
||||
"db:status": "./scripts/db-safety.sh status"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/check": "^0.9.4",
|
||||
|
||||
Reference in New Issue
Block a user