From bac886f5768e0abd8cfb70c6876a4d99cf3a0cbf Mon Sep 17 00:00:00 2001 From: Hazork Date: Sun, 21 Mar 2021 08:33:59 -0300 Subject: [PATCH] Port forwarding only inside the docker. Pre coding for the interface --- app/Dockerfile | 2 ++ docker-compose.yml | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Dockerfile b/app/Dockerfile index 4e9a1b8..933a0f3 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -9,4 +9,6 @@ RUN npm run build ENV NODE_ENV=production +EXPOSE 1228 + CMD ["npm", "run", "start"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index f21b706..ab59039 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,8 +2,6 @@ version: '3' services: app: build: ./app/ - ports: - - 1227 env_file: - ./app/.env volumes: