docs: 更新项目文档和配置文件,反映健身房管理系统的变更

This commit is contained in:
张翔
2026-04-17 18:43:11 +08:00
parent 40709a0b2b
commit 27aa8b66db
3 changed files with 30 additions and 30 deletions
+20 -20
View File
@@ -8,42 +8,42 @@ services:
# PostgreSQL数据库服务
postgres:
image: postgres:15-alpine
container_name: novalon-postgres
container_name: gym-postgres
environment:
<<: *common-env
POSTGRES_DB: manage_system
POSTGRES_USER: novalon
POSTGRES_PASSWORD: novalon123
POSTGRES_DB: gym_system
POSTGRES_USER: gym
POSTGRES_PASSWORD: gym123
POSTGRES_INITDB_ARGS: "--encoding=UTF8 --locale=zh_CN.UTF-8"
ports:
- "55432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./novalon-manage-api/manage-db/src/main/resources/db/migration:/docker-entrypoint-initdb.d
- ./gym-manage-api/manage-db/src/main/resources/db/migration:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD-SHELL", "pg_isready -U novalon -d manage_system"]
test: ["CMD-SHELL", "pg_isready -U gym -d gym_system"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
networks:
- novalon-network
- gym-network
restart: unless-stopped
# 后端API服务
backend:
build:
context: ./novalon-manage-api
context: ./gym-manage-api
dockerfile: Dockerfile
args:
- BUILD_VERSION=${BUILD_VERSION:-latest}
container_name: novalon-backend
container_name: gym-backend
environment:
<<: *common-env
SPRING_PROFILES_ACTIVE: docker
SPRING_R2DBC_URL: r2dbc:postgresql://postgres:5432/manage_system
SPRING_R2DBC_USERNAME: novalon
SPRING_R2DBC_PASSWORD: novalon123
SPRING_R2DBC_URL: r2dbc:postgresql://postgres:5432/gym_system
SPRING_R2DBC_USERNAME: gym
SPRING_R2DBC_PASSWORD: gym123
SPRING_JACKSON_TIME_ZONE: Asia/Shanghai
MANAGEMENT_ENDPOINTS_WEB_EXPOSURE_INCLUDE: health,info,metrics
ports:
@@ -58,7 +58,7 @@ services:
retries: 3
start_period: 60s
networks:
- novalon-network
- gym-network
restart: unless-stopped
logging:
driver: "json-file"
@@ -69,11 +69,11 @@ services:
# 前端Web服务
frontend:
build:
context: ./novalon-manage-web
context: ./gym-manage-web
dockerfile: Dockerfile
args:
- BUILD_VERSION=${BUILD_VERSION:-latest}
container_name: novalon-frontend
container_name: gym-frontend
ports:
- "3001:80"
depends_on:
@@ -89,7 +89,7 @@ services:
retries: 3
start_period: 40s
networks:
- novalon-network
- gym-network
restart: unless-stopped
logging:
driver: "json-file"
@@ -100,12 +100,12 @@ services:
# Redis缓存服务(可选)
redis:
image: redis:7-alpine
container_name: novalon-redis
container_name: gym-redis
environment:
<<: *common-env
ports:
- "6379:6379"
command: redis-server --appendonly yes --requirepass novalon123
command: redis-server --appendonly yes --requirepass gym123
volumes:
- redis_data:/data
healthcheck:
@@ -114,7 +114,7 @@ services:
timeout: 3s
retries: 5
networks:
- novalon-network
- gym-network
restart: unless-stopped
volumes:
@@ -124,7 +124,7 @@ volumes:
driver: local
networks:
novalon-network:
gym-network:
driver: bridge
ipam:
config: