No Description

docker-compose.yml 445B

123456789101112131415
  1. version: '2'
  2. services:
  3. # the name of our service that will run the CRA, docker-compose will reference it as web
  4. web:
  5. environment:
  6. NODE_ENV: development
  7. image: react-app # the image used for the service
  8. ports:
  9. - 3001:3000 # app will be at 3001
  10. volumes:
  11. - ./app:/usr/src/app # map our app directory to the volumes app working directory
  12. command: yarn start # command to run when starting the service