version: "2"
volumes:
  mongodb_data:

services:
  redis:
    image: redis
    hostname: redis
    restart: always

  mongodb:
    build:
      context: ./mongodb
    volumes:
      - mongodb_data:/data
    ports:
      - "5018:27017"
  node:
    extends:
      file: docker-compose-base.yml
      service: mean-service
    build:
      context: ./server
    hostname: node
    ports:
      - "8888:8888"
    volumes:
      - "./server:/app"
      - /server/node_modules/
    links:
     - nginx
     - mongodb
     - redis
  nginx:
    build: ./nginx
    ports:
      - "80:80"
    volumes:
      - "./src:/usr/share/nginx/html"
version: "2"
volumes:
  mongodb_data:
  nodemodules_data:

services:
  redis:
    image: redis
    hostname: redis
    restart: always

  mongodb:
    build:
      context: ./mongodb
    volumes:
      - mongodb_data:/data
    ports:
      - "5018:27017"
  node:
    extends:
      file: docker-compose-base.yml
      service: mean-service
    build:
      context: ./server
    hostname: node
    ports:
      - "8888:8888"
    volumes:
      - "./server:/app"
      - nodemodules_data:  /app/node_modules/
    links:
     - nginx
     - mongodb
     - redis
  nginx:
    build: ./nginx
    ports:
      - "80:80"
    volumes:
      - "./src:/usr/share/nginx/html"
Fix pb with directory to store node_modules
Fix pb with directory to store node_modules
