diff --git a/docker-compose.yml b/docker-compose.yml index d3307c13..fee80282 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,4 @@ -version: '3' +version: "3" services: redis: @@ -10,10 +10,9 @@ services: - ./redis-volume:/data backend: build: - context: . - dockerfile: backend/Dockerfile + context: backend ports: - - "8100:8100" # Backend is accessible on localhost:8100 + - "8100:8100" # Backend is accessible on localhost:8100 depends_on: - redis env_file: @@ -24,9 +23,8 @@ services: frontend: build: - context: . - dockerfile: frontend/Dockerfile + context: frontend ports: - - "5173:5173" # Frontend is accessible on localhost:5173 + - "5173:5173" # Frontend is accessible on localhost:5173 environment: VITE_BACKEND_URL: "http://backend:8100" diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 4aeebd3c..7e1fbfeb 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -5,14 +5,14 @@ FROM node:16 WORKDIR /frontend # Copy the package.json and yarn.lock -COPY ./frontend/package.json ./ -COPY ./frontend/yarn.lock ./ +COPY ./package.json ./ +COPY ./yarn.lock ./ # Install Yarn and dependencies RUN yarn install # Copy the rest of the frontend code -COPY ./frontend . +COPY . . # Expose the port the frontend runs on EXPOSE 5173