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
Deploy NestJS API / build-and-push-deploy (push) Successful in 3m1s
Details
This commit is contained in:
parent
9176d65606
commit
c60eabd804
|
|
@ -3,15 +3,20 @@ version: '3.8'
|
|||
services:
|
||||
vendaweb-api:
|
||||
image: 10.1.1.124:8082/library/vendaweb-api:latest
|
||||
build: .
|
||||
ports:
|
||||
- "8066:8066"
|
||||
- target: 8066
|
||||
published: 8066
|
||||
protocol: tcp
|
||||
mode: host
|
||||
networks:
|
||||
- juru-network
|
||||
deploy:
|
||||
replicas: 1
|
||||
update_config:
|
||||
order: start-first
|
||||
order: stop-first
|
||||
parallelism: 1
|
||||
failure_action: rollback
|
||||
delay: 5s
|
||||
|
||||
networks:
|
||||
juru-network:
|
||||
|
|
|
|||
|
|
@ -21,5 +21,5 @@ async function bootstrap() {
|
|||
const document = SwaggerModule.createDocument(app, options);
|
||||
SwaggerModule.setup("docs", app, document);
|
||||
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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue