Nodemon doesn't restart

I have a nodemon running in a docker-container with a mounted volume on OSX. Nodemon is receiving the file-change but it doesn’t restart the server.

Output:

  • docker COPY without save point
  • Increasing docker volume size using docker-compose
  • Connect to a PostgreSQL database on a Docker container
  • Domain name setup to docker instance
  • Accessing external hosts from docker container
  • docker not unzipping my files
  • Creating piclet_web_1...
    Attaching to piclet_web_1
    web_1 | 7 Sep 13:37:19 - [nodemon] v1.4.1
    web_1 | 7 Sep 13:37:19 - [nodemon] to restart at any time, enter `rs`
    web_1 | 7 Sep 13:37:19 - [nodemon] watching: *.*
    web_1 | 7 Sep 13:37:19 - [nodemon] starting node ./index.js
    web_1 | restify listening at http://[::]:80 //normal output of started node-app
    //file-change, which gets detected
    web_1 | 7 Sep 13:37:30 - [nodemon] restarting due to changes...
    //no output of restarted server
    

    Dockerfile:

    FROM node:0.12.7-wheezy
    EXPOSE 80
    
    RUN npm install nodemon -g
    
    ADD app /app
    WORKDIR app
    
    RUN npm install
    

    docker-compose.yml

    web:
      build: .
      ports:
        - "80:80"
      volumes:
        - ./app/lib:/app/lib
      links:
        - db
      command: "nodemon -L ./index.js"
    db:
      image: mongo:3.1.7
    

  • Kubernetes docker flannel subnet file not found
  • How to call 'docker swarm unlock' non-interactively?
  • Updating Docker, Docker Machine, Docker Compose
  • How to setup docker to use cache from registry on every build step
  • Tag latest not found in repository docker.io/library/<package>
  • How do I get my dreamweaver site to use my nginx docker container as a web test server?
  • One Solution collect form web for “Nodemon doesn't restart”

    I solved the issue by choosing another base-image for the container: node:0.12.7 instead of node:0.12.7-wheezy

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.