feat: extend operation log service and repository with pagination support

This commit is contained in:
张翔
2026-03-18 22:34:43 +08:00
parent 157aee2ffc
commit 8a0cd64829
81 changed files with 8842 additions and 509 deletions
+38 -41
View File
@@ -1,80 +1,77 @@
version: '3.8'
services:
# PostgreSQL数据库服务
postgres:
image: postgres:15-alpine
container_name: postgres
container_name: novalon-postgres
environment:
POSTGRES_DB: manage_system
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_USER: novalon
POSTGRES_PASSWORD: novalon123
ports:
- "55432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./docs/sql/init.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
test: ["CMD-SHELL", "pg_isready -U novalon -d manage_system"]
interval: 10s
timeout: 5s
retries: 5
gateway:
build:
context: ./novalon-manage-api/manage-gateway
dockerfile: Dockerfile
container_name: gateway
ports:
- "8080:8080"
environment:
SPRING_PROFILES_ACTIVE: prod
JWT_SECRET: novalon-manage-secret-key-change-in-production
JWT_EXPIRATION: 86400000
depends_on:
- app
networks:
- novalon-network
app:
# 后端API服务
backend:
build:
context: ./novalon-manage-api/manage-app
context: ./novalon-manage-api
dockerfile: Dockerfile
container_name: app
container_name: novalon-backend
environment:
SPRING_PROFILES_ACTIVE: docker
SPRING_R2DBC_URL: r2dbc:postgresql://postgres:5432/manage_system
SPRING_R2DBC_USERNAME: novalon
SPRING_R2DBC_PASSWORD: novalon123
ports:
- "8084:8084"
environment:
SPRING_PROFILES_ACTIVE: prod
DB_HOST: postgres
DB_PORT: 5432
DB_NAME: manage_system
DB_USERNAME: postgres
DB_PASSWORD: postgres
JWT_SECRET: novalon-manage-secret-key-change-in-production
JWT_EXPIRATION: 86400000
depends_on:
postgres:
condition: service_healthy
volumes:
- app_uploads:/app/uploads
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8084/actuator/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- novalon-network
# 前端Web服务
frontend:
build:
context: ./novalon-manage-web
dockerfile: Dockerfile
container_name: frontend
container_name: novalon-frontend
ports:
- "3000:80"
- "3001:80"
depends_on:
- gateway
backend:
condition: service_healthy
environment:
- VITE_API_BASE_URL=http://backend:8084
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- novalon-network
networks:
novalon-network:
driver: bridge
volumes:
postgres_data:
app_uploads:
driver: local
networks:
novalon-network:
driver: bridge