fix(blockchain-service): add global API prefix and increase healthcheck start_period
- Add app.setGlobalPrefix('api/v1') to main.ts so health endpoint
is at /api/v1/health consistent with other services
- Increase healthcheck start_period to 60s to allow time for
Prisma migrations on first startup
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
be6abd3034
commit
34fc008f9d
|
|
@ -24,6 +24,10 @@ async function bootstrap() {
|
||||||
// CORS
|
// CORS
|
||||||
app.enableCors();
|
app.enableCors();
|
||||||
|
|
||||||
|
// 全局 API 前缀
|
||||||
|
const apiPrefix = configService.get<string>('app.apiPrefix', 'api/v1');
|
||||||
|
app.setGlobalPrefix(apiPrefix);
|
||||||
|
|
||||||
// Swagger 文档
|
// Swagger 文档
|
||||||
const swaggerConfig = new DocumentBuilder()
|
const swaggerConfig = new DocumentBuilder()
|
||||||
.setTitle('Blockchain Service API')
|
.setTitle('Blockchain Service API')
|
||||||
|
|
|
||||||
|
|
@ -572,7 +572,7 @@ services:
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 3s
|
timeout: 3s
|
||||||
retries: 3
|
retries: 3
|
||||||
start_period: 40s
|
start_period: 60s
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- rwa-network
|
- rwa-network
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue