refactor: complete configuration cleanup and consistency fixes
Mirror to GitHub / mirror (push) Successful in 26s
Test and Lint / backend-test (push) Successful in 1m15s
continuous-integration/drone/push Build is passing
Test and Lint / frontend-test (push) Successful in 2m2s
Version and Release / version-bump (push) Failing after 1m17s
Version and Release / trigger-drone (push) Has been skipped
Mirror to GitHub / mirror (push) Successful in 26s
Test and Lint / backend-test (push) Successful in 1m15s
continuous-integration/drone/push Build is passing
Test and Lint / frontend-test (push) Successful in 2m2s
Version and Release / version-bump (push) Failing after 1m17s
Version and Release / trigger-drone (push) Has been skipped
- Create docker-compose.dev.yml with Mailhog for development email testing - Standardize all configurations to use PORT=3001 for backend - Fix database service naming (postgres → db) across all files - Add missing BACKEND_URL environment variable to all configs - Update .env examples to match actual Docker setup requirements - Remove orphaned postgres-init directory (Umami handles its own DB) - Update README roadmap: mark gallery feedback as implemented, add multi-admin support - Update deployment guide with development setup instructions - Fix frontend Dockerfile.dev for proper hot-reload development - Remove unused files (wedding-photos.db, frontend/README.md) This ensures all configuration files are consistent and aligned with the deployment guide.
This commit is contained in:
@@ -32,6 +32,12 @@ This comprehensive guide covers all deployment methods for PicPeak, including Do
|
||||
- **PM2 method**: Node.js 18+, PostgreSQL 14+
|
||||
- **Manual method**: Node.js 18+, PostgreSQL 14+, nginx (optional)
|
||||
|
||||
### Development Setup
|
||||
For local development, use `docker-compose.dev.yml` which includes Mailhog for email testing:
|
||||
```bash
|
||||
docker-compose -f docker-compose.dev.yml up -d
|
||||
```
|
||||
|
||||
## 🔐 Security Requirements
|
||||
|
||||
### Critical: JWT Secret Setup
|
||||
@@ -127,6 +133,9 @@ EMAIL_FROM=PicPeak <noreply@your-domain.com>
|
||||
NODE_ENV=production
|
||||
PORT=3001
|
||||
LOG_LEVEL=info
|
||||
|
||||
# Backend URL (if different from frontend)
|
||||
# BACKEND_URL=https://api.your-domain.com
|
||||
```
|
||||
|
||||
#### Step 2: Docker Volume Permissions
|
||||
@@ -479,6 +488,7 @@ app.listen(80);
|
||||
| `EMAIL_FROM` | From address | `PicPeak <noreply@domain.com>` |
|
||||
| `FRONTEND_URL` | Frontend URL | `https://your-domain.com` |
|
||||
| `BACKEND_URL` | Backend URL | `https://your-domain.com` |
|
||||
| `ADMIN_URL` | Admin panel URL | `https://your-domain.com` |
|
||||
|
||||
### Optional Configuration
|
||||
|
||||
|
||||
Reference in New Issue
Block a user