close

    node:
      image: "node:9.9"
      user: "node"
      working_dir: /var/www/homework
      environment:
        - NODE_ENV=development
      volumes_from:
        - applications
      ports:
        - "8081:8081"
        - "8080:8080"
      expose:
        - "8081"
        - "8080"
      command: "npm start"
     
### Networks Setup #

 

1。extract-text-webpack-plugin" loader is used without the corresponding plugin,

 

        - NODE_ENV=development  mustbe dev  not production

2.port,host

when

 

Cannot connect to container: Connection is reset by peer

連線被重設

docker recv failure connection reset by peer

 

solve:

host must be 0.0.0.0

so

you need to go 

 

arrow
arrow
    全站熱搜

    學習程式 發表在 痞客邦 留言(0) 人氣()