From ee6469379f9805d88997e3715435b92dd9e9dcbd Mon Sep 17 00:00:00 2001 From: "theis.gaedigk" Date: Fri, 1 Aug 2025 21:23:58 +0200 Subject: [PATCH] added docker functionality --- docker-compose.yml | 33 ++++++++++++++++----------------- frontend/Dockerfile | 2 +- 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 5a0d0f3..e490ed1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,21 +1,20 @@ services: - # frontend: - # container_name: frontend - # build: ./frontend - # ports: - # - "7002:7002" - # environment: - # - CHOKIDAR_USEPOLLING=true - # volumes: - # - ./frontend:/app - # - /app/node_modules - # restart: unless-stopped - - backend: - container_name: backend - build: ./backend + frontend: + container_name: frontend + build: ./frontend ports: - - "7001:7001" + - "7002:7002" + environment: + - CHOKIDAR_USEPOLLING=true volumes: - - ./backend:/bikelane-backend + - ./frontend:/app + - /app/node_modules restart: unless-stopped +# backend: +# container_name: backend +# build: ./backend +# ports: +# - "7001:7001" +#volumes: +# - ./backend:/bikelane-backend +# restart: unless-stopped diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 5f3667f..7d384f8 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -9,4 +9,4 @@ COPY . . EXPOSE 7002 -CMD ["npm", "start"] \ No newline at end of file +CMD ["npm", "run", "dev"] \ No newline at end of file