feat: Configure host-mode port mapping and a stop-first deployment strategy with rollback, removing local build.
Deploy NestJS API / build-and-push-deploy (push) Successful in 3m1s Details

This commit is contained in:
joelson 2026-01-05 15:39:49 -03:00
parent 9176d65606
commit c60eabd804
2 changed files with 9 additions and 4 deletions

View File

@ -3,15 +3,20 @@ version: '3.8'
services: 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
build: .
ports: ports:
- "8066:8066" - target: 8066
published: 8066
protocol: tcp
mode: host
networks: networks:
- juru-network - juru-network
deploy: deploy:
replicas: 1 replicas: 1
update_config: update_config:
order: start-first order: stop-first
parallelism: 1
failure_action: rollback
delay: 5s
networks: networks:
juru-network: juru-network:

View File

@ -21,5 +21,5 @@ async function bootstrap() {
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(8066, '0.0.0.0');}
console.log('API rodando na porta 8066 teste 2'); console.log('API rodando na porta 8066 test 3');
bootstrap(); bootstrap();