diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 5322f9e..d7eabfb 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -4,7 +4,7 @@ services: hello-world-prod: container_name: hello_world_cl_prod build: - context: . + context: ./frontend dockerfile: Dockerfile.prod ports: - - 8877:80 + - 3000:80 diff --git a/docker-compose.yml b/docker-compose.yml index 8625cfc..88b0993 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,24 +7,20 @@ services: context: ./frontend dockerfile: Dockerfile tty: true - volumes: - - './frontend/.:/app:z' - - '/app/node_modules' ports: - 3000:3000 environment: - CHOKIDAR_USEPOLLING=true - backend-dev: - container_name: backend_bt - build: - context: ./backend - dockerfile: Dockerfile - tty: true - volumes: - - ./backend:/usr/src/app/ - ports: - - 5000:5000 - environment: - PORT: 5000 - FLASK_DEBUG: 1 - +# backend-dev: +# container_name: backend_bt +# build: +# context: ./backend +# dockerfile: Dockerfile +# tty: true +# volumes: +# - ./backend:/usr/src/app/ +# ports: +# - 5000:5000 +# environment: +# PORT: 5000 +# FLASK_DEBUG: 1 diff --git a/frontend/Dockerfile b/frontend/Dockerfile index d49a86a..f53f938 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -10,7 +10,7 @@ ENV PATH /app/node_modules/.bin:$PATH COPY package.json ./ COPY package-lock.json ./ -RUN npm install --silent +RUN npm install # add app COPY . ./ diff --git a/frontend/package.json b/frontend/package.json index 85c3c1f..543636e 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -37,5 +37,5 @@ "last 1 safari version" ] }, - "proxy": "http://127.0.0.1:3000" + "proxy": "http://127.0.0.1:5000" } diff --git a/start.sh b/start.sh index 5b7b88e..3d71904 100644 --- a/start.sh +++ b/start.sh @@ -1,3 +1,2 @@ -cd frontend podman-compose down podman-compose up