mirror of
https://github.com/iflytek/skillhub.git
synced 2026-08-28 11:25:00 +00:00
- Migrate all Maven groupId and Java packages to com.iflytek.skillhub - Add Docker Compose with PostgreSQL 16, Redis 7, MinIO - Add Flyway V1 migration with Phase 1 core schema (user, auth, RBAC, namespace, audit) - Add RequestIdFilter with MDC tracing and X-Request-Id header - Add GlobalExceptionHandler and ErrorResponse DTO - Add HealthController (/api/v1/health) and OpenAPI config - Add basic SecurityConfig permitting public endpoints - Add H2 test profile for CI-friendly testing without external services - Add top-level Makefile for dev workflow orchestration - All 3 tests passing
47 lines
1,017 B
YAML
47 lines
1,017 B
YAML
services:
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
ports:
|
|
- "5432:5432"
|
|
environment:
|
|
POSTGRES_DB: skillhub
|
|
POSTGRES_USER: skillhub
|
|
POSTGRES_PASSWORD: skillhub_dev
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U skillhub"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
redis:
|
|
image: redis:7-alpine
|
|
ports:
|
|
- "6379:6379"
|
|
healthcheck:
|
|
test: ["CMD", "redis-cli", "ping"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
minio:
|
|
image: minio/minio:latest
|
|
ports:
|
|
- "9000:9000"
|
|
- "9001:9001"
|
|
environment:
|
|
MINIO_ROOT_USER: minioadmin
|
|
MINIO_ROOT_PASSWORD: minioadmin
|
|
command: server /data --console-address ":9001"
|
|
volumes:
|
|
- minio_data:/data
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
volumes:
|
|
postgres_data:
|
|
minio_data:
|