refactor: update port mappings to 8068, enhance deployment configurations, and modify health check response

This commit is contained in:
joelson 2026-01-06 12:20:43 -03:00
parent f66fd4271f
commit f55d0da72d
6 changed files with 15 additions and 19 deletions

View File

@ -20,5 +20,5 @@ COPY --from=builder /app/dist ./dist
COPY --from=builder /app/package*.json ./ COPY --from=builder /app/package*.json ./
COPY --from=builder /app/node_modules ./node_modules COPY --from=builder /app/node_modules ./node_modules
EXPOSE 8066 EXPOSE 8068
CMD ["npm", "run", "start:prod"] CMD ["npm", "run", "start:prod"]

View File

@ -4,20 +4,15 @@ services:
vendaweb-api: vendaweb-api:
image: 10.1.1.124:8082/library/vendaweb-api:latest image: 10.1.1.124:8082/library/vendaweb-api:latest
ports: ports:
- target: 8066 - "8068:8068"
published: 8066
protocol: tcp
mode: host
networks: networks:
- juru-network - simplifique-network
deploy: deploy:
replicas: 1 replicas: 4
update_config: update_config:
order: stop-first order: start-first
parallelism: 1 parallelism: 1
failure_action: rollback
delay: 5s
networks: networks:
juru-network: simplifique-network:
external: true external: true

View File

@ -14,7 +14,7 @@ export class AppController {
@Get('health') @Get('health')
@ApiOperation({ summary: 'Health check' }) @ApiOperation({ summary: 'Health check' })
healthCheck() { healthCheck() {
return { status: ':ok 3 ' }; return { status: ':Jurunense homecenter ' };
} }
} }

View File

@ -7,12 +7,12 @@ export const typeOrmConfig: TypeOrmModuleOptions = {
// username: "LIVIA", // username: "LIVIA",
// password: "LIVIA", // password: "LIVIA",
host: "10.1.1.241", host: "10.1.1.241",
username: "SEVEN", username: "teste",
password: "USR54SEV", password: "teste",
// username: "API", // username: "API",
// password: "E05H5KIEQV3YKDJR", // password: "E05H5KIEQV3YKDJR",
port: 1521, port: 1521,
sid: "WINT", sid: "BDTESTE",
synchronize: false, synchronize: false,
logging: false, logging: false,
entities: [__dirname + '/../**/*.entity.{js,ts}'], entities: [__dirname + '/../**/*.entity.{js,ts}'],
@ -22,10 +22,10 @@ export const typeOrmConfig: TypeOrmModuleOptions = {
export const connectionOptions: ConnectionOptions = { export const connectionOptions: ConnectionOptions = {
type: "oracle", type: "oracle",
host: "10.1.1.241", host: "10.1.1.241",
username: "SEVEN", username: "teste",
password: "USR54SEV", password: "teste",
port: 1521, port: 1521,
sid: "WINT", sid: "BDTESTE",
synchronize: false, synchronize: false,
logging: false, logging: false,
entities: [__dirname + '/../**/*.entity.{js,ts}'], entities: [__dirname + '/../**/*.entity.{js,ts}'],

View File

@ -20,6 +20,6 @@ async function bootstrap() {
.build(); .build();
const document = SwaggerModule.createDocument(app, options); const document = SwaggerModule.createDocument(app, options);
SwaggerModule.setup("docs", app, document); SwaggerModule.setup("docs", app, document);
await app.listen(8066, '0.0.0.0');} await app.listen(8068, '0.0.0.0');}
console.log('API rodando na porta 8066 test 3'); console.log('API rodando na porta 8066 test 3');
bootstrap(); bootstrap();

View File

@ -1503,6 +1503,7 @@ export class SalesService {
async calculateDeliveryTaxOrder(dataDeliveryTax: any) { async calculateDeliveryTaxOrder(dataDeliveryTax: any) {
let cityId = await this.customerService.findCity(dataDeliveryTax.ibgeCode); let cityId = await this.customerService.findCity(dataDeliveryTax.ibgeCode);
await this.updatePriorityDelivery(dataDeliveryTax.cartId, dataDeliveryTax.priorityDelivery); await this.updatePriorityDelivery(dataDeliveryTax.cartId, dataDeliveryTax.priorityDelivery);
if (cityId == 0) { if (cityId == 0) {