From 5fed00d1b854c1558dbf7234cd27a743d57e5f9d Mon Sep 17 00:00:00 2001 From: Hugo SUBTIL <ext.sopra.husubtil@grandlyon.com> Date: Tue, 17 Aug 2021 10:06:00 +0200 Subject: [PATCH] fix(docker): update local configuration --- docker-compose.local.yml | 13 ------------- nginx/site.conf | 2 +- package.json | 2 +- 3 files changed, 2 insertions(+), 15 deletions(-) diff --git a/docker-compose.local.yml b/docker-compose.local.yml index f9f0b99f..993c16aa 100644 --- a/docker-compose.local.yml +++ b/docker-compose.local.yml @@ -1,18 +1,5 @@ version: '3.7' services: - front: - container_name: front - build: - context: . - dockerfile: Dockerfile.local - depends_on: - - nginx - volumes: - - '.:/app' - - '/app/node_modules' - ports: - - 3000:3000 - nginx: image: nginx:1.16 volumes: diff --git a/nginx/site.conf b/nginx/site.conf index 55350514..96266e85 100644 --- a/nginx/site.conf +++ b/nginx/site.conf @@ -7,7 +7,7 @@ server { ssl_ciphers HIGH:!aNULL:!MD5; location / { - proxy_pass https://front; + proxy_pass https://host.docker.internal:3000; } location /api { proxy_pass https://backend:1443/api; diff --git a/package.json b/package.json index 1352e11d..291c5b08 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "scripts": { - "start": "set PORT=443 && react-scripts start", + "start": "react-scripts start", "build": "react-scripts build", "docker-local-up" : "docker-compose -f docker-compose.local.yml up", "docker-local-down" : "docker-compose -f docker-compose.local.yml down", -- GitLab