sdy

debug frontend docker-compose

...@@ -50,13 +50,14 @@ services: ...@@ -50,13 +50,14 @@ services:
50 container_name: frontend 50 container_name: frontend
51 ports: 51 ports:
52 - "3000:3000" 52 - "3000:3000"
53 + tty: "true"
53 build: 54 build:
54 context: front 55 context: front
55 dockerfile: Dockerfile 56 dockerfile: Dockerfile
57 + command: npm start
56 environment: 58 environment:
57 - NODE_ENV=development 59 - NODE_ENV=development
58 - CHOKIDAR_USEPOLLING=true 60 - CHOKIDAR_USEPOLLING=true
59 - BACKEND_URL=${BACKEND_URL} 61 - BACKEND_URL=${BACKEND_URL}
60 volumes: 62 volumes:
61 - - ./front:/app 63 + - ./front:/usr/src/app
62 - - ./front/node_modules:/app/node_modules
......