feat: 初始化ERP平台底座项目结构
- 添加基础crate结构(erp-core, erp-common) - 实现核心模块trait和事件总线 - 配置Docker开发环境(PostgreSQL+Redis) - 添加Tauri桌面端基础框架 - 设置CI/CD工作流 - 编写项目协作规范文档(CLAUDE.md)
This commit is contained in:
5
docker/.env.example
Normal file
5
docker/.env.example
Normal file
@@ -0,0 +1,5 @@
|
||||
POSTGRES_USER=erp
|
||||
POSTGRES_PASSWORD=erp_dev_2024
|
||||
POSTGRES_DB=erp
|
||||
POSTGRES_PORT=5432
|
||||
REDIS_PORT=6379
|
||||
36
docker/docker-compose.yml
Normal file
36
docker/docker-compose.yml
Normal file
@@ -0,0 +1,36 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
container_name: erp-postgres
|
||||
environment:
|
||||
POSTGRES_USER: ${POSTGRES_USER:-erp}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-erp_dev_2024}
|
||||
POSTGRES_DB: ${POSTGRES_DB:-erp}
|
||||
ports:
|
||||
- "${POSTGRES_PORT:-5432}:5432"
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-erp}"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
redis:
|
||||
image: redis:7-alpine
|
||||
container_name: erp-redis
|
||||
ports:
|
||||
- "${REDIS_PORT:-6379}:6379"
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
redis_data:
|
||||
Reference in New Issue
Block a user