Compare commits
2 Commits
7022d491ce
...
d5fa17151f
| Author | SHA1 | Date |
|---|---|---|
|
|
d5fa17151f | |
|
|
937b3f37ab |
|
|
@ -7,6 +7,8 @@ RUN npm install --legacy-peer-deps
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
CMD ["npm", "run", "start:prod"]
|
||||||
|
|
||||||
FROM node:16-bullseye-slim
|
FROM node:16-bullseye-slim
|
||||||
# Instalar dependências do Oracle
|
# Instalar dependências do Oracle
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
|
|
|
||||||
|
|
@ -2,13 +2,14 @@ version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
vendaweb-api:
|
vendaweb-api:
|
||||||
image: http://10.1.1.124:8082/library/vendaweb-api:latest
|
image: 10.1.1.124:8082/library/vendaweb-api:latest
|
||||||
|
command: npm run start:prod
|
||||||
ports:
|
ports:
|
||||||
- "8065:8065"
|
- "8066:8065"
|
||||||
networks:
|
networks:
|
||||||
- juru-network
|
- juru-network
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 4
|
replicas: 1
|
||||||
update_config:
|
update_config:
|
||||||
order: start-first
|
order: start-first
|
||||||
parallelism: 1
|
parallelism: 1
|
||||||
|
|
|
||||||
|
|
@ -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(8065);
|
await app.listen(8066);
|
||||||
}
|
}
|
||||||
bootstrap();
|
bootstrap();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue