feat: Update all production configs for dedicated PostgreSQL server
Some checks failed
ParentFlow CI/CD Pipeline / Backend Tests (push) Has been cancelled
ParentFlow CI/CD Pipeline / Frontend Tests (push) Has been cancelled
ParentFlow CI/CD Pipeline / Security Scanning (push) Has been cancelled
ParentFlow CI/CD Pipeline / Build Docker Images (map[context:maternal-app/maternal-app-backend dockerfile:Dockerfile.production name:backend]) (push) Has been cancelled
ParentFlow CI/CD Pipeline / Build Docker Images (map[context:maternal-web dockerfile:Dockerfile.production name:frontend]) (push) Has been cancelled
ParentFlow CI/CD Pipeline / Deploy to Development (push) Has been cancelled
ParentFlow CI/CD Pipeline / Deploy to Production (push) Has been cancelled
CI/CD Pipeline / Lint and Test (push) Has been cancelled
CI/CD Pipeline / E2E Tests (push) Has been cancelled
CI/CD Pipeline / Build Application (push) Has been cancelled
Some checks failed
ParentFlow CI/CD Pipeline / Backend Tests (push) Has been cancelled
ParentFlow CI/CD Pipeline / Frontend Tests (push) Has been cancelled
ParentFlow CI/CD Pipeline / Security Scanning (push) Has been cancelled
ParentFlow CI/CD Pipeline / Build Docker Images (map[context:maternal-app/maternal-app-backend dockerfile:Dockerfile.production name:backend]) (push) Has been cancelled
ParentFlow CI/CD Pipeline / Build Docker Images (map[context:maternal-web dockerfile:Dockerfile.production name:frontend]) (push) Has been cancelled
ParentFlow CI/CD Pipeline / Deploy to Development (push) Has been cancelled
ParentFlow CI/CD Pipeline / Deploy to Production (push) Has been cancelled
CI/CD Pipeline / Lint and Test (push) Has been cancelled
CI/CD Pipeline / E2E Tests (push) Has been cancelled
CI/CD Pipeline / Build Application (push) Has been cancelled
- PostgreSQL now on dedicated server: 10.0.0.207:5432 - Database: parentflow (user: postgres, password: a3ppq) - Removed PostgreSQL from docker-compose.production.yml - Updated start-production.sh to check PostgreSQL connectivity - Updated migration scripts to use dedicated server - Created .env.admin.example for admin service configuration - Updated admin dashboard docs with PostgreSQL details - Redis, MongoDB, MinIO remain as Docker containers on 10.0.0.240 Infrastructure: - Application Server: 10.0.0.240 (PM2 + Docker services) - Database Server: 10.0.0.207 (PostgreSQL only) - Admin Server: 10.0.0.241 (future deployment) - Nginx Proxy: Separate server with SSL configured 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1362,11 +1362,25 @@ services:
|
||||
- "4000:4000" # Admin API on separate port
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
DATABASE_URL: postgresql://...
|
||||
# Dedicated PostgreSQL Server
|
||||
DATABASE_URL: postgresql://postgres:a3ppq@10.0.0.207:5432/parentflow
|
||||
DATABASE_HOST: 10.0.0.207
|
||||
DATABASE_PORT: 5432
|
||||
DATABASE_NAME: parentflow
|
||||
DATABASE_USER: postgres
|
||||
DATABASE_PASSWORD: a3ppq
|
||||
# Redis on 10.0.0.240
|
||||
REDIS_HOST: 10.0.0.240
|
||||
REDIS_PORT: 6379
|
||||
# MongoDB on 10.0.0.240
|
||||
MONGODB_URI: mongodb://parentflow_admin:parentflow_mongo_password_2024@10.0.0.240:27017/parentflow_ai_chat?authSource=admin
|
||||
# Auth keys
|
||||
JWT_SECRET: ${ADMIN_JWT_SECRET}
|
||||
SERVICE_AUTH_KEY: ${SERVICE_AUTH_KEY} # For service-to-service auth
|
||||
networks:
|
||||
- parentflow-network
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway" # For accessing host services
|
||||
|
||||
admin-ui:
|
||||
build: ./parentflow-admin-service/admin-ui
|
||||
@@ -1375,6 +1389,7 @@ services:
|
||||
- "4001:3000" # Admin UI
|
||||
environment:
|
||||
REACT_APP_API_URL: http://admin-api:4000
|
||||
REACT_APP_MAIN_APP_URL: https://web.parentflowapp.com
|
||||
networks:
|
||||
- parentflow-network
|
||||
|
||||
@@ -1474,17 +1489,27 @@ Production Environment:
|
||||
│ ├── Server: 10.0.0.241 (separate from main app)
|
||||
│ ├── URL: admin.parentflowapp.com
|
||||
│ ├── Ports: 4000 (API), 4001 (UI)
|
||||
│ └── Database: Shared with main app (read/write to admin tables)
|
||||
│ └── Database: Connects to dedicated PostgreSQL server
|
||||
│
|
||||
├── Main Applications
|
||||
│ ├── Web: 10.0.0.240:3030 → web.parentflowapp.com
|
||||
│ ├── API: 10.0.0.240:3020 → api.parentflowapp.com
|
||||
│ └── Mobile APIs: Will connect to api.parentflowapp.com
|
||||
│
|
||||
└── Shared Infrastructure
|
||||
├── PostgreSQL: 10.0.0.240:5432
|
||||
├── Redis: 10.0.0.240:6379
|
||||
└── MongoDB: 10.0.0.240:27017
|
||||
├── Database Infrastructure
|
||||
│ ├── PostgreSQL: 10.0.0.207:5432
|
||||
│ │ ├── Database: parentflow
|
||||
│ │ ├── User: postgres
|
||||
│ │ └── Password: a3ppq
|
||||
│ │
|
||||
│ └── Docker on 10.0.0.240
|
||||
│ ├── Redis: Port 6379
|
||||
│ ├── MongoDB: Port 27017
|
||||
│ └── MinIO: Ports 9000/9001
|
||||
│
|
||||
└── Nginx Proxy Server (Separate)
|
||||
├── SSL certificates configured
|
||||
└── Reverse proxy for all domains
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user