Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
32 changes: 16 additions & 16 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down