重构后端服务架构并优化前端错误处理

This commit is contained in:
ylweng
2025-09-12 01:31:30 +08:00
parent 7f011a57ed
commit 320f41f25d
3 changed files with 104 additions and 8 deletions

View File

@@ -9,21 +9,16 @@ services:
- DB_HOST=db
- DB_PORT=3306
- DB_USER=root
- DB_PASSWORD=rootpassword
- DB_PASSWORD=root
- DB_NAME=niumall
- PORT=8080
- GIN_MODE=release
- JWT_SECRET=mysecretkey
depends_on:
- db
volumes:
- .env:/root/.env
db:
image: mysql:8.0
environment:
- MYSQL_ROOT_PASSWORD=rootpassword
- MYSQL_DATABASE=niumall
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: niumall
ports:
- "3306:3306"
volumes: