diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 81e7da4..f96eb04 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -5,18 +5,13 @@ services: build: context: ./frontend dockerfile: dockerfile.prod - # command: ["yarn", "start"] container_name: frontend # ports: # - 3000:3000 volumes: - ./frontend:/frontend - - build_folder:/frontend/build + - build_folder:/frontend/dist - ./frontend/node_modules/:/frontend/node_modules - # environment: - # - CI=true - # - CHOKIDAR_USEPOLLING=true # HMR을 위해 필요한 설정 - # - REACT_APP_BACKEND_URL=http://localhost:8000 stdin_open: true # react-script 3.4.1 부터 필요 tty: true env_file: diff --git a/docker-compose.yml b/docker-compose.yml index c3b6624..238644a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,22 +1,22 @@ version: "3" services: - # gd_frontend: - # container_name: gd_frontend - # restart: unless-stopped - # build: - # context: ./frontend - # command: ["yarn", "start"] - # ports: - # - 3000:3000 - # volumes: - # - ./frontend/:/frontend/ - # - ./frontend/node_modules/:/frontend/node_modules - # environment: - # - CI=true - # - CHOKIDAR_USEPOLLING=true - # - REACT_APP_BACKEND_URL=http://localhost:8000 - # tty: true + gd_frontend: + container_name: gd_frontend + restart: unless-stopped + build: + context: ./frontend + dockerfile: Dockerfile + ports: + - 3000:3000 + volumes: + - ./frontend/:/frontend + - /frontend/node_modules + environment: + - CI=true + - CHOKIDAR_USEPOLLING=true + - REACT_APP_BACKEND_URL=http://localhost:8000 + tty: true gd_backend: build: