Deployment Strategy: 4 environments + Docker setup
- Development: localhost (API:3002, UI:3003) - Integration: AI model validation - Pilot: pilot.landvex.com (Docker Compose) - Production: app.landvex.com - Intelligence Lab: lab.landvex.internal Docker Compose: - API (Node.js) - UI (Nginx) - PostgreSQL - MinIO (object storage) Next: Deploy pilot environment
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
# API
|
||||
api:
|
||||
build:
|
||||
context: ./packages/api
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "3002:3002"
|
||||
environment:
|
||||
- NODE_ENV=pilot
|
||||
- PORT=3002
|
||||
- DATABASE_URL=postgresql://postgres:postgres@db:5432/landvex
|
||||
depends_on:
|
||||
- db
|
||||
volumes:
|
||||
- uploads:/app/uploads
|
||||
|
||||
# UI
|
||||
ui:
|
||||
build:
|
||||
context: ./packages/ui
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "3003:80"
|
||||
depends_on:
|
||||
- api
|
||||
|
||||
# Database
|
||||
db:
|
||||
image: postgres:16-alpine
|
||||
environment:
|
||||
- POSTGRES_USER=postgres
|
||||
- POSTGRES_PASSWORD=postgres
|
||||
- POSTGRES_DB=landvex
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
ports:
|
||||
- "5432:5432"
|
||||
|
||||
# Object Storage (MinIO for pilot)
|
||||
minio:
|
||||
image: minio/minio:latest
|
||||
command: server /data --console-address ":9001"
|
||||
environment:
|
||||
- MINIO_ROOT_USER=minioadmin
|
||||
- MINIO_ROOT_PASSWORD=minioadmin
|
||||
volumes:
|
||||
- minio_data:/data
|
||||
ports:
|
||||
- "9000:9000"
|
||||
- "9001:9001"
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
minio_data:
|
||||
uploads:
|
||||
Reference in New Issue
Block a user