docker test
This commit is contained in:
parent
8f8c1fb5ab
commit
b394ed315b
|
@ -0,0 +1,6 @@
|
|||
FROM node:18
|
||||
RUN mkdir -p /home/app
|
||||
COPY . /home/app
|
||||
WORKDIR /home/app
|
||||
EXPOSE 3000
|
||||
CMD ["npm", "start"]
|
|
@ -20,7 +20,7 @@ import { AppService } from './app.service';
|
|||
name: 'SERVICIO_COMUNIDADES',
|
||||
transport: Transport.TCP,
|
||||
options: {
|
||||
host: '127.0.0.1',
|
||||
host: 'microserviciosNetwork',
|
||||
port: 3002,
|
||||
},
|
||||
},
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
version: "3.9"
|
||||
services:
|
||||
apiGateway:
|
||||
build: ./api-gateway
|
||||
networks:
|
||||
- microserviciosNetwork
|
||||
comunidad:
|
||||
build: ./servicio-comunidad-viviendas
|
||||
networks:
|
||||
- microserviciosNetwork
|
||||
|
||||
networks:
|
||||
microserviciosNetwork
|
|
@ -0,0 +1,6 @@
|
|||
FROM node:18
|
||||
RUN mkdir -p /home/app
|
||||
COPY . /home/app
|
||||
WORKDIR /home/app
|
||||
EXPOSE 3000
|
||||
CMD ["npm", "start"]
|
|
@ -5,6 +5,7 @@
|
|||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "servicio-comunidad-viviendas",
|
||||
"version": "0.0.1",
|
||||
"license": "UNLICENSED",
|
||||
"dependencies": {
|
||||
|
|
|
@ -10,7 +10,7 @@ import { ClientsModule, Transport } from '@nestjs/microservices';
|
|||
name: 'SERVICIO_COMUNIDADES',
|
||||
transport: Transport.TCP,
|
||||
options: {
|
||||
host: '127.0.0.1',
|
||||
host: 'microserviciosNetwork',
|
||||
port: 3002,
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue