docker test

This commit is contained in:
Maria Sanchez 2022-07-28 22:02:22 -06:00
parent 8f8c1fb5ab
commit b394ed315b
6 changed files with 28 additions and 2 deletions

6
api-gateway/Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM node:18
RUN mkdir -p /home/app
COPY . /home/app
WORKDIR /home/app
EXPOSE 3000
CMD ["npm", "start"]

View File

@ -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,
},
},

13
docker-compose.yml Normal file
View File

@ -0,0 +1,13 @@
version: "3.9"
services:
apiGateway:
build: ./api-gateway
networks:
- microserviciosNetwork
comunidad:
build: ./servicio-comunidad-viviendas
networks:
- microserviciosNetwork
networks:
microserviciosNetwork

View File

@ -0,0 +1,6 @@
FROM node:18
RUN mkdir -p /home/app
COPY . /home/app
WORKDIR /home/app
EXPOSE 3000
CMD ["npm", "start"]

View File

@ -5,6 +5,7 @@
"requires": true,
"packages": {
"": {
"name": "servicio-comunidad-viviendas",
"version": "0.0.1",
"license": "UNLICENSED",
"dependencies": {

View File

@ -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,
},
},